simplification token reddit
This commit is contained in:
parent
f375df8e4e
commit
d7e8685357
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class Internet(commands.Cog):
|
||||||
async def _memes(self, ctx, *, args = ""):
|
async def _memes(self, ctx, *, args = ""):
|
||||||
"""Envois un meme de reddit.\n ➡ Syntaxe: .memes/meme [subreddit]"""
|
"""Envois un meme de reddit.\n ➡ Syntaxe: .memes/meme [subreddit]"""
|
||||||
try:
|
try:
|
||||||
reddit = praw.Reddit(client_id = token['client_id'], client_secret = token['client_secret'], user_agent = f"disreddit /{token['user_agent']}, http://localhost:8080")
|
reddit = praw.Reddit(client_id = token['client_id'], client_secret = token['client_secret'], user_agent = f"disreddit /u/{token['user_agent']}, http://localhost:8080")
|
||||||
|
|
||||||
if args != "": # si il y a un arg différent d'un meme
|
if args != "": # si il y a un arg différent d'un meme
|
||||||
subredditchoix = args
|
subredditchoix = args
|
||||||
|
|
Reference in a new issue