Alright, I’ve been doing some testing (Running every piece of the code apart from the actual post requests) and I’ve not seen any more crashes or errors.
With the new changes I have made (You will see them when they appear) I genuinely think it makes the bot a bit more fun.
If you want to be spoiled on the new changes I have listed them below:
Improvement of the misspelling to handle capital letters (yeah, it wasn’t before, don’t ask)
Change to the all caps functionality so now it does it to only parts of a sentence, this makes it less obnoxious imo.
Change to what words can generate when the pattern decides to only generate one item. Before it would only be a noun, now it can be a WHOLE heap of different word types.
Improvement of cleaning up the sentences when generated, commas will now be included after interjections but not after emoticons. I can now include questions at the end of a clause and it won’t follow it with further punctuation.
Lowered the odds of every random feature to 10%, they shouldn’t happen as often now because the bot was quoting people too often and making it less funny.
I have made additional changes which I can’t quite remember yet and there may still be some issues, but I hope the new version isn’t so bothersome.