fix: running @updatebt would trigger a request msg for each new ban.
added option for enable request msg, defaults to False bot owners should run @config plugins.Bantracker.commentRequest True
This commit is contained in:
@ -34,7 +34,9 @@ conf.registerGlobalValue(Bantracker, 'database',
|
||||
conf.registerGlobalValue(Bantracker, 'bansite',
|
||||
registry.String('', "Web site for the bantracker, without the 'bans.cgi' appended", private=True))
|
||||
|
||||
conf.registerGroup(Bantracker, 'commentRequest')
|
||||
conf.registerChannelValue(Bantracker, 'commentRequest',
|
||||
registry.Boolean(False,
|
||||
"Enable message requests from bot"))
|
||||
conf.registerChannelValue(Bantracker.commentRequest, 'type',
|
||||
SpaceSeparatedListOfTypes(['removal', 'ban', 'quiet'],
|
||||
"List of events for which the bot should request a comment."))
|
||||
|
Reference in New Issue
Block a user