scarletcafe / jishaku

A debugging and testing cog for discord.py rewrite bots.
https://jishaku.readthedocs.io/en/latest/
MIT License
541 stars 181 forks source link

add a flag to force dm traceback #148

Closed mysistersbrother closed 2 years ago

mysistersbrother commented 2 years ago

The Problem

I want all of the exceptions caused by using jishaku eval to be sent directly to my DMS. Currently most flags ARE sent to DMS but some are not.

if isinstance(exc_val, (SyntaxError, asyncio.TimeoutError, subprocess.TimeoutExpired)):
            # short traceback, send to channel
            await send_traceback(self.message.channel, 0, exc_type, exc_val, exc_tb)

I would like a flag to be added that forces any exception to be sent to DMs. Thank you.

scarletcafe commented 2 years ago

Added ALWAYS_DM_TRACEBACK in 1821ded and will be in the next release.