1
0
Fork 0
mirror of synced 2024-06-02 18:54:33 +12:00

Upped the limit on the amount of posts that can be retrieved from a single e621 call, made the bot say that it's retrieving an image since this might take a bit

This commit is contained in:
phxntxm 2016-07-20 17:17:30 -05:00
parent bfff8e3ffb
commit 187da1fe35

View file

@ -243,8 +243,8 @@ class Core:
tags = " ".join(tag)
tags = tags.replace(' ', '_')
tags = tags.replace(',_', '%20')
url = 'https://e621.net/post/index.json?tags={}'.format(tags)
url = 'https://e621.net/post/index.json?limit=320&tags={}'.format(tags)
await self.bot.say("Looking up an image with those tags....")
if ctx.message.channel.id in config.getContent('nsfw_channels'):
url += "%20rating:explicit"
else: