1
0
Fork 0
mirror of synced 2024-05-19 12:02:29 +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' url = 'https://e621.net/posts.json'
params = { params = {
'login': config.e621_user, 'login': utils.config.e621_user,
'api_key': config.e621_key, 'api_key': utils.config.e621_key,
'limit': 5, 'limit': 5,
'tags': tags 'tags': tags
} }
headers = {'User-Agent': config.user_agent} headers = {'User-Agent': utils.config.user_agent}
nsfw = utils.channel_is_nsfw(ctx.message.channel) nsfw = utils.channel_is_nsfw(ctx.message.channel)
# e621 by default does not filter explicit content, so tack on # e621 by default does not filter explicit content, so tack on