added debug to delivery exception
This commit is contained in:
parent
26d6c39369
commit
a18978077c
|
|
@ -3,6 +3,7 @@ from discord import option
|
||||||
from discord.ext import commands, tasks
|
from discord.ext import commands, tasks
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import helpers
|
import helpers
|
||||||
|
import traceback
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
class IdaCogs(commands.Cog):
|
class IdaCogs(commands.Cog):
|
||||||
|
|
@ -112,7 +113,9 @@ class IdaCogs(commands.Cog):
|
||||||
else:
|
else:
|
||||||
await ctx.followup.send(f"Failed to log delivery (HTTP {response}). Please contact the yellow people if that keeps happening")
|
await ctx.followup.send(f"Failed to log delivery (HTTP {response}). Please contact the yellow people if that keeps happening")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await ctx.followup.send(f"help : Error: {e}")
|
await ctx.followup.send(f"Something broke. Why do you keep breaking the bot, uh? :(")
|
||||||
|
channel = self.bot.get_channel(self.debugChannel)
|
||||||
|
await channel.send(f"{author} generated the following exception : {traceback.format_exc()}")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -156,6 +159,7 @@ class IdaCogs(commands.Cog):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@discord.slash_command(
|
@discord.slash_command(
|
||||||
name="last",
|
name="last",
|
||||||
# guild_ids=[401372086746087425],
|
# guild_ids=[401372086746087425],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user