whitetrashyt / r34discordbot

Discord bot that pulls images with specified tags from rule34 and posts them.
8 stars 8 forks source link

rule34 api broken #14

Open Hotment opened 4 months ago

Hotment commented 4 months ago

it seems that the rule34 API has broken or the access through the rule34 package has been blocked either way the bot now isn't working and no the issue isn't on my side cuz on my global server it doesn't work as well

when i run any command that pools from rule34 this error occurs

HTTP Error while Parse 403: Forbidden The Provided Prompt propably doesn't exist: argument of type 'NoneType' is not iterable

whitetrashyt commented 2 months ago

sorry for late reply,

apparently the rule34 api has been deprecated recently, so i'd have to rewrite the json parsing bits to use a fully independent system. thatt'l take some time and im rather busy at this moment, so if you want to do it yourself you can pretty much copy the system used for any e621 related commands, and replace it with rule34.xxx's json link, the documentation for which is shown here.

as for timeframe, i can maybe get it patched up within 1-2 weeks.

Hotment commented 1 month ago

sorry for late reply,

apparently the rule34 api has been deprecated recently, so i'd have to rewrite the json parsing bits to use a fully independent system. thatt'l take some time and im rather busy at this moment, so if you want to do it yourself you can pretty much copy the system used for any e621 related commands, and replace it with rule34.xxx's json link, the documentation for which is shown here.

as for timeframe, i can maybe get it patched up within 1-2 weeks.

So i kinda fixed it but you need to type the SPECIFIC tag for it to work and i also updated it to the newest discord.py verison cuz the old one broke the help command idk why. I added a statement if the link in the commands: "fcoin, rcoin, rr" is an mp4 link. And also I notised that the commands using requests.get('https://shibe.online/api/shibes?count=1') won't work cuz the shibe.online website broke or something, I will try to fix that but i don't think it's possible. And also I'm not so good with code so there may be some mistakes in the code if you want i can send you the code

Edit: I fixed the issue with the specific tag the tag can now be similar to the acctual tag and still work for exaple instead of typing this: "zerotwo(darling_in_the_franxx)" to the bot you can just type: "zero two" And also what is your @ on discord? cuz in the code it says "jess#3347" but that is outdated

You can view the fixed code here