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

@@ -2,6 +2,8 @@ import argparse
import contextlib
import io
import utils
class ArgumentParser:
def __init__(self, command, description):
@@ -24,6 +26,6 @@ class ArgumentParser:
args = self.parser.parse_args(tokens[1:])
return args
except SystemExit:
await message.reply(f"```\n{self.print_help()}```", mention_author=False)
await utils.reply(message, f"```\n{self.print_help()}```")
except Exception as e:
await message.reply(f"`{e}`", mention_author=False)
await utils.reply(message, f"`{e}`")