MitchellHarrison / stream-environment

Python. Postgres. Docker. | Microservices in pursuit of a better, more interactive live stream. https://twitch.tv/mitchsworkshop
https://twitch.tv/mitchsworkshop
MIT License
20 stars 12 forks source link

Let chat bot ban users #50

Open MitchellHarrison opened 2 years ago

MitchellHarrison commented 2 years ago

The /ban command works if bot is modded. We can check for strings like "Wanna become famous", and reply with /ban <user> like any other chat message.

MitchellHarrison commented 2 years ago

We should also check for users already being in the database. If they have sent more than one message before, we can avoid banning them. These bots are one-time message senders, and some legitimate chatters may sarcastically use any phrase that we are searching for to ban.