mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-25 20:41:19 -05:00
'kickOnMode' allows bot to kick when someone else sets a ban, 'clonePermit' can check clones joins in a channel, 'resolveIp' to True with supybot.debug.threadAllCommands to True should prevent bot being stuck due to socket/dns timeout
This commit is contained in:
parent
5b2e162f70
commit
fd99d11acb
14
config.py
14
config.py
@ -154,6 +154,10 @@ conf.registerChannelValue(ChanTracker, 'kickMode',
|
||||
registry.CommaSeparatedListOfStrings(['b'], """bot will kick affected users when mode is triggered,
|
||||
use if with caution, if an op bans *!*@*, bot will kick everyone on the channel"""))
|
||||
|
||||
conf.registerChannelValue(ChanTracker, 'kickOnMode',
|
||||
registry.Boolean(False, """bot will kick affected users when kickMode is triggered by someone,
|
||||
use if with caution"""))
|
||||
|
||||
conf.registerChannelValue(ChanTracker, 'kickMax',
|
||||
registry.Integer(-1,"""if > 0, disable kick if affected users > kickMax, avoid to cleanup entire channel with ban like *!*@*"""))
|
||||
|
||||
@ -192,6 +196,16 @@ conf.registerChannelValue(ChanTracker, 'skynet',
|
||||
|
||||
# related to channel's protection
|
||||
|
||||
#clone
|
||||
conf.registerChannelValue(ChanTracker, 'clonePermit',
|
||||
registry.Integer(-1,"""Number of messages allowed , -1 to disable"""))
|
||||
conf.registerChannelValue(ChanTracker, 'cloneMode',
|
||||
registry.String('d',"""mode used by the bot when clone detection is triggered"""))
|
||||
conf.registerChannelValue(ChanTracker, 'cloneDuration',
|
||||
registry.PositiveInteger(60,"""punishment duration in seconds"""))
|
||||
conf.registerChannelValue(ChanTracker, 'cloneComment',
|
||||
registry.String('clone detected',"""comment added on mode changes database, empty for no comment"""))
|
||||
|
||||
# flood detection settings
|
||||
conf.registerChannelValue(ChanTracker, 'floodPermit',
|
||||
registry.Integer(-1,"""Number of messages allowed during floodLife, -1 to disable"""))
|
||||
|
Loading…
x
Reference in New Issue
Block a user