FanfictionBot / reddit-ffn-bot

A reddit auto reply bot.
53 stars 18 forks source link

Bot appears to be down for two weeks #129

Closed Emily1799 closed 1 year ago

Emily1799 commented 1 year ago

Hey, it looks like the bot hasn't been working for two weeks. Any chance you'll have time to get it back up and running? Do you need a donation or something?

FanfictionBot commented 1 year ago

Thanks for the offer, but I don't need a donation. I just don't have the time to maintain the bot, read fics, or really even use Reddit these days.

It looks like the bot has been blocked:

ERROR:root:(STORY) Could not load story!               
ERROR:root:('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))                                         
LOADING: https://www.fanfiction.net/s/8586147/1/

Cloudflare protection probably.

Unfortunately I don't have time to fix this :(

The solution is either using AO3 or having someone with programming experience submit a PR with a fix.

Emily1799 commented 1 year ago

Still doesn't seem to be working, even just sending an ffnbot!parent for an Ao3 link in the parent comment. I tried here https://www.reddit.com/r/HPfanfiction/comments/11ruape/what_are_you_reading_weekly_post/jcxholf/

I get that you're short on time, very fair. I'm happy to help try and get this fixed, but it's hard without access to the debug that I'm assuming is being printed out on your end. Can you share the logs? If not, then is there anything I should know that's not documented before I make a fork, and set up the bot on a different account than /u/fanfictionbot?

Emily1799 commented 1 year ago

Hey, if I don't hear back from you, I'm going to give it a try this weekend. Hope you don't mind.

FanfictionBot commented 1 year ago

Hey, if I don't hear back from you, I'm going to give it a try this weekend. Hope you don't mind.

@Emily1799 please feel free to go ahead and test it. You'll need to make new Reddit account for your test bot. I would recommend spinning the bot up for just one sub, preferably a sub you've made just for testing.

That will prevent your bot from interfering with the currently running bot, and also make it easier for you to test as you won't need to worry about extraneous people making comments or replies while you test.

When you have a good set of changes, you can make a PR and I'll accept. And if you feel comfortable working with the bot after this, I can add you as a maintainer/admin for this repo and give you the credentials for u/FanfictionBot.

Emily1799 commented 1 year ago

I opened Pull#130 -- would you mind seeing it it works for the "real" bot?

I also took a look at the issue with Fanfiction.net and it seems like that requires the paid version of the library you're using =(

FanfictionBot commented 1 year ago

Thanks for your fixes, @Emily1799.

I've also committed two more of my own fixes and restarted the bot with those fixes incorporated. Please let me know if everything works as expected for you :)

Also, would you like to be an additional maintainer on this repo?

Emily1799 commented 1 year ago

I spent some time thinking and I'll take it; it's something in my power to do (even if I've never really worked object oriented Python much), and I've benefited quite a lot over the years since you built this.

FanfictionBot commented 1 year ago

Thanks Emily, that means a lot! I've added you to the repo.