So I see @discobot trawls through the site and gets called/comes in to post when it’s mentioned.
I tried to look at the discobot code on github, but I’m not completely understanding how it’s hooking up to the website and instantly replying. I figure it has some generic commands like diceroll and such, but does it have the capability of reading/processing all of the posts in a thread?
I’d like to try to add on some extension to the bot to have it function in the same way that stovebot was working in the old forums.
Starts one of the following interactive narratives: new user, advanced user.
@discobot roll 2d6
3, 6
@discobot quote
Carry out a random act of kindness, with no expectation of reward, safe in the knowledge that one day someone might do the same for you — Princess Diana
Alternatively, if I wanted to create a bot, if modifying discobot isn’t an option, what other options are available?
I know the selenium bot I was using would prob work, but it was a standalone that was running on my machine locally, I think it would be pretty cool if something like discobot running server side could be created instead.
Old namafia forum pi has a working bot that was using a crawler with selenium, it wasn’t the best implementation but it worked well.
I would have to update all of the XPaths to the ones on this site but I think it would work fine, however i know some things I need to figure out is how the bot interacts w infinite scroll on this site. Prev bot was saving the direct url for the last post it read and jumping to that pg. Worst case scenario I could have the bot reread every post when it runs every 60 seconds.