1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Correct where to pull config from

This commit is contained in:
Dan Hess 2020-04-06 12:03:56 -05:00
parent 3587154281
commit 33842a145f

View file

@ -231,12 +231,12 @@ class Images(commands.Cog):
url = 'https://e621.net/posts.json'
params = {
'login': config.e621_user,
'api_key': config.e621_key,
'login': utils.config.e621_user,
'api_key': utils.config.e621_key,
'limit': 5,
'tags': tags
}
headers = {'User-Agent': config.user_agent}
headers = {'User-Agent': utils.config.user_agent}
nsfw = utils.channel_is_nsfw(ctx.message.channel)
# e621 by default does not filter explicit content, so tack on