Steam-Chat-Bot / node-steam-chat-bot

Simplified interface for a steam chat bot
MIT License
101 stars 35 forks source link

[Request] Anti flood #13

Open lostandconfused opened 9 years ago

lostandconfused commented 9 years ago

Any chance of auto kick for spam being implemented?

Efreak commented 9 years ago

This is already planned, I just don't have the time right now.

lostandconfused commented 9 years ago

Good to know, cheers.

Efreak commented 9 years ago

how does e2c51ed8f1fe8ca20816c0df552a707ffaaee8b4 look to you? I haven't tested it yet, but it should be tweakable enough that someone can set it up the way they like it. It also has support for words you dislike; you can increase someone's score (a bad thing) when they say them.

Everything is customizable, from the penalties to the scores.

TODO:

lostandconfused commented 9 years ago

Works well for multi line stuff, probably not going to use the rest so not tried them. One thing it sends the warning message for every line after the warning is first sent which leads to it spamming the spammer if they post really fast, would be nice to have a timeout on it sending the message.

Efreak commented 9 years ago

spamming the spammer

This is a problem? :smile_cat:

lostandconfused commented 9 years ago

As amusing as it is, a little.

Efreak commented 9 years ago

I'll take a look at it later, see if I can use disableForTimeout without it affecting anything other than the sendMessageAfterDelay functions.

lostandconfused commented 9 years ago

Tried the ban, it logs that it's banning but doesn't actually ban

Efreak commented 9 years ago

Does the bot have permission to ban users? Check steamcommunity.com/groups/your_group/permissionsEdit and steamcommunity.com/groups/your_group/membersManage to make sure. You can also check your group history page (steamcommunity.com/groups/your_group/history) to see if the ban went through.

lostandconfused commented 9 years ago

Ok I'm just an idiot and forgot to give officers the power to ban in my test group facepalm

Efreak commented 9 years ago

:+1:

lostandconfused commented 9 years ago

Could the badwords maybe get a exact and non exact option?

Efreak commented 8 years ago

define what you mean bvy inexact, please? Apologies for not responding to this, somehow I never saw it.

lostandconfused commented 8 years ago

For example if "bot" adds a point "robot" wont add a point, just the "exact:true" option.

I can't actually remember why I wanted it so don't worry about it.

Efreak commented 8 years ago

Add a space. I'll be adding regex support soon, so you'll be able to specify word boundaries at that point. In the meantime, you can set your badword to " bot" instead of "bot" and it will only apply if there's a space before it.

Regex support will probably require a change in the way the config works, as I don't believe you can use a regex as an object property name, only as a value.