Open lostandconfused opened 9 years ago
This is already planned, I just don't have the time right now.
Good to know, cheers.
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.
/(https?\:\/\/)?[A-Z\.]+\/(id|profiles)\/[A-Z0-1_-]+\/inventory\/\#[0-9_]+/i
/\:[A-Z0-9_-]+\:/i
Everything is customizable, from the penalties to the scores.
TODO:
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.
spamming the spammer
This is a problem? :smile_cat:
As amusing as it is, a little.
I'll take a look at it later, see if I can use disableForTimeout without it affecting anything other than the sendMessageAfterDelay functions.
Tried the ban, it logs that it's banning but doesn't actually ban
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.
Ok I'm just an idiot and forgot to give officers the power to ban in my test group facepalm
:+1:
Could the badwords maybe get a exact and non exact option?
define what you mean bvy inexact, please? Apologies for not responding to this, somehow I never saw it.
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.
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.
Any chance of auto kick for spam being implemented?