add(jishaku)
This commit is contained in:
parent
57ea780f2c
commit
425ff79c8d
2 changed files with 13 additions and 0 deletions
4
bot.py
4
bot.py
|
@ -38,6 +38,7 @@ l_extensions = (
|
||||||
'cogs.utility',
|
'cogs.utility',
|
||||||
'cogs.vocal',
|
'cogs.vocal',
|
||||||
'cogs.private',
|
'cogs.private',
|
||||||
|
'jishaku'
|
||||||
)
|
)
|
||||||
|
|
||||||
help_attrs = dict(hidden=True, in_help=True, name="DONOTUSE")
|
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"Impossible de charger l'extension {extension}\n"
|
||||||
f"{type(e).__name__}: {e}{colors.ENDC}", file=sys.stderr)
|
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):
|
async def on_command_error(self, ctx, error):
|
||||||
if isinstance(error, commands.NoPrivateMessage):
|
if isinstance(error, commands.NoPrivateMessage):
|
||||||
await ctx.author.send('Cette commande ne peut pas être utilisee '
|
await ctx.author.send('Cette commande ne peut pas être utilisee '
|
||||||
|
|
9
requirements.txt
Normal file
9
requirements.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
pymysql
|
||||||
|
gtts
|
||||||
|
beautifulsoup4
|
||||||
|
lxml==4.2.4
|
||||||
|
bs4
|
||||||
|
pytz
|
||||||
|
requests
|
||||||
|
wikipedia
|
||||||
|
pillow
|
Loading…
Reference in a new issue