correction

This commit is contained in:
Mylloon 2020-12-04 09:59:28 +01:00
parent 95444cecde
commit 3877ac736c

View file

@ -17,7 +17,7 @@ class Internet(commands.Cog):
async def _memes(self, ctx, *, args = ""):
"""Envois un meme de reddit.\n ➡ Syntaxe: .memes/meme [subreddit]"""
try:
reddit = praw.Reddit(client_id = token['client_id'], client_secret = token['client_secret'], user_agent = f"{token['user_agent']}, http://localhost:8080")
reddit = praw.Reddit(client_id = token['client_id'], client_secret = token['client_secret'], user_agent = f"disreddit /{token['user_agent']}, http://localhost:8080")
if args != "": # si il y a un arg différent d'un meme
subredditchoix = args