Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ async def show_sc_queue(ctx: discord.ApplicationContext) -> None:
async def announce_sc_queue(ctx: discord.ApplicationContext,ping_users:bool) -> None:
await _announce_queue(ctx = ctx, council = 2, ping_users = ping_users)

@bot.event
async def on_application_command_error(ctx:discord.ApplicationContext, error:discord.DiscordException):
logger.error(error)
ctx.respond('<@1271403487045095465> An unspecified error occurred.')

async def main() -> None:
try:
logger.info('Starting DB setup scripts')
Expand Down
Loading