add(jishaku)

This commit is contained in:
Mael G. 2019-12-29 22:15:32 +01:00
parent 57ea780f2c
commit 425ff79c8d
2 changed files with 13 additions and 0 deletions

4
bot.py
View file

@ -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 '

9
requirements.txt Normal file
View file

@ -0,0 +1,9 @@
pymysql
gtts
beautifulsoup4
lxml==4.2.4
bs4
pytz
requests
wikipedia
pillow