From 6776f34d111b97cc7d814b65d372e85872fa798d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 1 Jun 2021 01:13:07 +0200 Subject: [PATCH] update subreddit + fix error meme for slash commands --- src/cogs/internet.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cogs/internet.py b/src/cogs/internet.py index cda9fd9..3a68c1b 100644 --- a/src/cogs/internet.py +++ b/src/cogs/internet.py @@ -32,9 +32,9 @@ class Internet(commands.Cog): if args: # s'il y a un subreddit de défini subredditchoix = args else: # s'il n'y en a pas - subredditchoix = choice(['memes', 'anime_irl', 'goodanimemes', 'BikiniclienttomTwitter', 'dankmemes', 'DeepFried', + subredditchoix = choice(['memes', 'goodanimemes', 'BikiniclienttomTwitter', 'dankmemes', 'DeepFried', 'educationalmemes', 'funny', 'marvelmemes', 'me_irl', 'meme', 'MemeEconomy', 'Memes_Of_The_Dank', 'MinecraftMemes', - 'physicsmemes', 'reactiongifs', 'blackpeopletwitter', 'metal_me_irl', 'bee_irl', '195', 'shittyadviceanimals', 'meirl', + 'physicsmemes', 'blackpeopletwitter', 'metal_me_irl', '195', 'shittyadviceanimals', 'meirl', '2meirl4meirl', 'AdviceAnimals', 'weirdmemes']) try: @@ -59,7 +59,8 @@ class Internet(commands.Cog): except Exception as error: print(f"Error in _memes command = args: {args}, subreddit: {subredditchoix}, error: {error}") - await ctx.message.add_reaction(emoji = '❌') + if fromSlash != True: + 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 = "Envoie un meme de reddit.") async def __memes(self, ctx, subreddit = None):