refactor: use utils.reply for replying

This commit is contained in:
2024-12-30 03:51:17 -05:00
parent 6b9172ef1b
commit 86bf70907c
3 changed files with 10 additions and 8 deletions

View File

@@ -22,9 +22,9 @@ async def on_message(message):
return
if len(matched) > 1:
await message.reply(
await utils.reply(
message,
f"ambiguous command, could be {' or '.join([f'`{match.value}`' for match in matched])}",
mention_author=False,
)
return
@@ -95,9 +95,9 @@ async def on_message(message):
case C.UPTIME:
await commands.bot.uptime(message)
except Exception as e:
await message.reply(
await utils.reply(
message,
f"exception occurred while processing command: ```\n{''.join(traceback.format_exception(e)).replace('`', '\\`')}```",
mention_author=False,
)