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?
Thank you for the request, товарищ. throwawaylemmy2 has not said the G-word yet.
Thank you for the request, товарищ. asaharyev has not said the G-word yet.
Ah it might not, that's a good catch. I'll poke around and fix that.
Thank you for the request, товарищ. asaharyev has said the G-word only once.
Oh I see, yeah I go back and forth on this. I might add in a "count/hard a count" for counting the censored g-word and non-censored g-word
Ok I added in a thing that differentiates between censored and uncensored.
Thank you for the request, товарищ. itsPina has said the G-word 872 times.
Holy fuck. Based on your crimes, even Tartarus could not hold you.
Thank you for the request, товарищ. itsPina has said the G-word 872 times, using its uncensored version 872 times.
Yeah you gotta tag the bot and then the username you want checked.
Thank you for the request, товарищ. thethirdgracchi has said the G-word 4 times.
Thank you for the request, товарищ. thethirdgracchi has said the G-word 4 times, always taking care to use its censored form.
Thank you for the request, товарищ. Hungover has said the G-word 2 times.
:sankara-salute: Important oversight on my part. It will be added!
Thank you for the request, товарищ. Beatnik has not said the G-word yet.
Thank you for the request, товарищ. COMM_ORGANISER_BOT has not said the G-word yet.
For awhile I really thought the mods added censorship to add the * to all g-words
@gwordcountbot @ScreamoBMO You've gotta format it like this or my bot won't love you. Anyway yeah I'll change it, good point on the classic SQL injection but Python hack. I was lazy and I deserve to be flayed for it. :sankara-salute:
Thank you for the request, товарищ. ScreamoBMO has said the G-word 8 times, using its uncensored version 1 times.
Thank you for the request, товарищ. kristina has said the G-word 5 times, using its uncensored version 5 times.
: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.
Thank you for the request, товарищ. Posadas has said the G-word only once.
Thank you for the request, товарищ. Wmill has not said the G-word yet.
Thank you for the request, товарищ. AlephNull has said the G-word 4 times.