Hey folks, considering the hilarious bot bit going around, I thought it finally time to construct an actual bot here and let it loose. Its name is @gwordcountbot, inspired by @nwordcountbot (RIP), and it functions the same way but for the g-word. Right now it checks all instances of the g-word, so gamer, gmer, g@mer, gamers, etc. I thinking of adding a check for how many hard a's (gamer) versus soft (gmer, g@mer), but for now this is enough. It's running on a crontab on my computer right now, but I'll get it hooked up to a sever soon, as well as post the source code online so others can get some bots going. Look at the comments here for how the bot works!

EDIT: I've posted the source code here so you can check out how it works/create new bots. Anybody know a good place to host this so I don't have to keep my computer running forever?

  • thethirdgracchi [he/him, they/them]
    hexagon
    ·
    4 years ago

    :sankara-salute: Thanks for the suggestions comrade. Yeah I'll switch over to regex now that my proof of concept is working, I just hate fiddling around in regex since every time I use it I have to relearn how. I'll look into EC2, but we use AWS at work and all the networking stuff makes my head spin. Have you tried Lightsail or one of those alternatives? If I can just get a Linux machine connected to the web I should be good to go, I'm just scared of getting that set up. Also I like your logic about how to parse requests for the bot, I'll implement that.