Whoops pt. 2

This commit is contained in:
Ske 2018-11-13 14:01:24 +01:00
parent b4c45a7722
commit 3e5357d27f
2 changed files with 9 additions and 4 deletions

View file

@ -123,6 +123,8 @@ def run():
embed = None
traceback_str = "```python\n{}```".format(traceback.format_exc())
if len(traceback.format_exc()) >= (2000 - len("```python\n```")):
traceback_str = "```python\n...{}```".format(traceback.format_exc()[- (2000 - len("```python\n...```")):])
await log_channel.send(content=traceback_str, embed=embed)
bot_token = os.environ["TOKEN"]