Topic: Discord Bot and e621 help

Posted under Off Topic

not really sure where this belongs, or even if it belongs on this site. apologies if it doesnt this is my first time posting. im using the bot mee6 on discord and ive seen people register a command with him where typing something like !e621 will have the bought grab a random image from e621. does anyone know how to do this? ive tried but all ive been able to do is have him post a like to a random post (but its the same post every time even tho its supposed to be random)im using e621.net/random but it still isnt working. much appreciation for any help. thank you.

Updated

https://e621.net/post/index.json?tags=order:random

, avoid using &limit=1 because it is slow for some reason.
Also be sure to specify a header.
Benefit of using no limit is that you can cycle through until a post matches something that doesn't hit a specific blacklist, or you can increase randomness by picking a random entry from the result.

Updated by anonymous

Chaser said:
https://e621.net/post/index.json?tags=order:random, avoid using &limit=1 because it is slow for some reason.
Also be sure to specify a header.
Benefit of using no limit is that you can cycle through until a post matches something that doesn't hit a specific blacklist, or you can increase randomness by picking a random entry from the result.

thanks for the help!

Updated by anonymous

  • 1