xurizaemon / bolts

A Mattermost bot for CiviCRM
1 stars 3 forks source link

How to handle spam / problematic use / bad bot behaviour? #7

Open xurizaemon opened 7 years ago

xurizaemon commented 7 years ago

If a malicious user (or bot) interacted with @bolts in ways that contravene the CiviCRM Code of Conduct, are annoying or harmful to individuals / community, what could we do?

xurizaemon commented 7 years ago

I've implemented a middleware for hubot, hubot-refrain

This lets hubot stop itself from saying certain things (based on patterns stored in robot.brain). So when we have had hashtagspam appear which contained text like "🆓 GET 66 FRIENDS 🆓", we are able to instruct bolts bolts refrain add GET .* FRIENDS and bolts will no longer voice those messages originating from hubot-twitter-mention which contain the matched string.