From 425ff79c8daaf4535aee192961e92373bba4ae1b Mon Sep 17 00:00:00 2001 From: Mael GRAMAIN Date: Sun, 29 Dec 2019 22:15:32 +0100 Subject: [PATCH] add(jishaku) --- bot.py | 4 ++++ requirements.txt | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 requirements.txt diff --git a/bot.py b/bot.py index bc5e67a..1a18947 100755 --- a/bot.py +++ b/bot.py @@ -38,6 +38,7 @@ l_extensions = ( 'cogs.utility', 'cogs.vocal', 'cogs.private', + 'jishaku' ) help_attrs = dict(hidden=True, in_help=True, name="DONOTUSE") @@ -68,6 +69,9 @@ class TuxBot(commands.Bot): f"Impossible de charger l'extension {extension}\n" f"{type(e).__name__}: {e}{colors.ENDC}", file=sys.stderr) + async def is_owner(self, user: discord.User): + return str(user.id) in config.authorized_id + async def on_command_error(self, ctx, error): if isinstance(error, commands.NoPrivateMessage): await ctx.author.send('Cette commande ne peut pas ĂȘtre utilisee ' diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d55b962 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +pymysql +gtts +beautifulsoup4 +lxml==4.2.4 +bs4 +pytz +requests +wikipedia +pillow \ No newline at end of file