fix cat and dog for private server

This commit is contained in:
Mylloon 2021-06-01 00:51:43 +02:00
parent 718ac774d2
commit 06462290d5
3 changed files with 5 additions and 5 deletions

View file

@ -119,6 +119,6 @@ class ConfrerieDuKassoulait(commands.Cog):
"kotsur", "bisad", "büsi", "chatz", "paka", "muc", "poonai", "puunay", "kocour", "kocka", "maa-oh", "kedi", "kit", "con mêo",
"tchèt", "mouss", "ologbo", "kats", "", "кот", "고양이", "poticha", "😼", "ʇɐɥɔ"]
if message.content.lower() in chiens:
await Internet()._dog(await self.client.get_context(message))
await Internet(self.client)._dog(self, await self.client.get_context(message))
if message.content.lower() in chats:
await Internet()._cat(await self.client.get_context(message))
await Internet(self.client)._cat(self, await self.client.get_context(message))

View file

@ -69,7 +69,7 @@ class Help(commands.Cog):
if fromSlash != True:
await ctx.message.add_reaction(emoji = '')
await ctx.send('', embed = halp)
@cog_ext.cog_slash(name="help", description = "Envois un meme de reddit.")
@cog_ext.cog_slash(name="help", description = "Affiche toutes les commandes du bot.")
async def __help(self, ctx, cog = None):
ctx.prefix = "/"
if cog == None:

View file

@ -18,7 +18,7 @@ class Internet(commands.Cog):
@commands.command(name='memes', aliases = ['meme'])
async def _memes(self, ctx, *args):
"""Envois un meme de reddit.\n ➡ Syntaxe: {PREFIX}memes/meme [subreddit]"""
"""Envoie un meme de reddit.\n ➡ Syntaxe: {PREFIX}memes/meme [subreddit]"""
fromSlash = False
if len(args) > 0:
if args[-1] == True:
@ -62,7 +62,7 @@ class Internet(commands.Cog):
print(f"Error in _memes command = args: {args}, subreddit: {subredditchoix}, error: {error}")
await ctx.message.add_reaction(emoji = '')
return await ctx.send(f"Ce subreddit est interdit, mis en quarantaine ou n'existe pas. ({subredditchoix})")
@cog_ext.cog_slash(name="meme", description = "Envois un meme de reddit.")
@cog_ext.cog_slash(name="meme", description = "Envoie un meme de reddit.")
async def __memes(self, ctx, subreddit = None):
if subreddit == None:
return await self._memes(ctx, True)