changes on reaction in meme and remove old subreddit
This commit is contained in:
parent
67f3b694ab
commit
380814c955
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ class Internet(commands.Cog):
|
||||||
if args: # s'il y a un subreddit de défini
|
if args: # s'il y a un subreddit de défini
|
||||||
subredditchoix = args
|
subredditchoix = args
|
||||||
else: # s'il n'y en a pas
|
else: # s'il n'y en a pas
|
||||||
subredditchoix = choice(['memes', 'goodanimemes', 'BikiniclienttomTwitter', 'dankmemes', 'DeepFried',
|
subredditchoix = choice(['memes', 'goodanimemes', 'dankmemes', 'DeepFried',
|
||||||
'educationalmemes', 'funny', 'marvelmemes', 'me_irl', 'meme', 'MemeEconomy', 'Memes_Of_The_Dank', 'MinecraftMemes',
|
'educationalmemes', 'funny', 'marvelmemes', 'me_irl', 'meme', 'MemeEconomy', 'Memes_Of_The_Dank', 'MinecraftMemes',
|
||||||
'physicsmemes', 'blackpeopletwitter', 'metal_me_irl', '195', 'shittyadviceanimals', 'meirl',
|
'physicsmemes', 'blackpeopletwitter', 'metal_me_irl', '195', 'shittyadviceanimals', 'meirl',
|
||||||
'2meirl4meirl', 'AdviceAnimals', 'weirdmemes'])
|
'2meirl4meirl', 'AdviceAnimals', 'weirdmemes'])
|
||||||
|
@ -54,8 +54,8 @@ class Internet(commands.Cog):
|
||||||
message = await ctx.send(f"```r/{subredditchoix} pour {ctx.author.name}```\n{submission.url}")
|
message = await ctx.send(f"```r/{subredditchoix} pour {ctx.author.name}```\n{submission.url}")
|
||||||
if fromSlash != True:
|
if fromSlash != True:
|
||||||
await ctx.message.add_reaction(emoji = '✅')
|
await ctx.message.add_reaction(emoji = '✅')
|
||||||
await message.add_reaction('👍')
|
await message.add_reaction('🔺')
|
||||||
return await message.add_reaction('👎')
|
return await message.add_reaction('🔻')
|
||||||
|
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
print(f"Error in _memes command = args: {args}, subreddit: {subredditchoix}, error: {error}")
|
print(f"Error in _memes command = args: {args}, subreddit: {subredditchoix}, error: {error}")
|
||||||
|
|
Reference in a new issue