Hey folks, just thought I'd post the updated source code for the gwordcountbot here. Thanks to all those who gave feedback! I'm using regular expressions now so I don't have to worry about exponentially increasing for loop times or punctuation, and I got rid of that scary eval that allowed Python injection and replaced it with JSON.

As far as where it lives, I forgot I had a raspberry pi lying around so I've scheduled it to run every two minutes on there, and can now promptly forget about it forever. If it ever stops running or you want improvements, just ping me and I'll get to work. If you ping me and I don't respond, just assume I died of covid and set up gwordcountbot2 with the code and run it yourself. Can't wait for bots to get banned, but until then gwordcountbot will Live.

百花齊放, 百家机器人鳴

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

      Yeah I might put it on Gitlab or something, I'll clean it up a little and abstract some stuff so people can use it more easily for other things. Was going to use Github but then didn't want to dox myself and am too lazy to change up my Github credentials and stuff on my computer to make it easy.