mostlymaxi / twitch-interactive-things

random rust projects to make my twitch stream more interactive!
https://twitch.tv/mostlymaxi
MIT License
3 stars 6 forks source link

refactor and add spam checks for commands and failed commands #52

Closed zuixalias closed 4 weeks ago

zuixalias commented 1 month ago

With this the bot should not send error messages to chat until the specified failed-command-cooldown expires.

I prob should do more commits instead of a single large one, will see. Also, the impl is shaping up to be not so good looking, mayb, hehe

mostlymaxi commented 4 weeks ago

sqlite/mongo/redis time? we are tracking a silly amount of data in hashmaps…

lillianrubyrose commented 4 weeks ago

sqlite/mongo/redis time? we are tracking a silly amount of data in hashmaps…

Since you're deploying to Fly, check out LiteFS, it's SQLite but very integrated with them

zuixalias commented 4 weeks ago

wot, idk

zuixalias commented 4 weeks ago

mardge this eyes closed totally will not crash on strim

zuixalias commented 4 weeks ago

ok i'm done with this pr, sorry for the intermittent amends. can rewrite the spam handling if you want... but for the current spam impl, this pr is a must, it should make it more stable and easier to manage