From 06462290d5947ad5b17820d651a6b2882904a625 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 1 Jun 2021 00:51:43 +0200 Subject: [PATCH] fix cat and dog for private server --- src/cogs/confreriedukassoulait.py | 4 ++-- src/cogs/help.py | 2 +- src/cogs/internet.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cogs/confreriedukassoulait.py b/src/cogs/confreriedukassoulait.py index 14815d9..bec9ea7 100644 --- a/src/cogs/confreriedukassoulait.py +++ b/src/cogs/confreriedukassoulait.py @@ -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)) diff --git a/src/cogs/help.py b/src/cogs/help.py index cbf8473..6face42 100644 --- a/src/cogs/help.py +++ b/src/cogs/help.py @@ -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: diff --git a/src/cogs/internet.py b/src/cogs/internet.py index 1d240fb..248cddf 100644 --- a/src/cogs/internet.py +++ b/src/cogs/internet.py @@ -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)