67
by Dennis Kaarsemaker
Mess and Lart are back |
1 |
###
|
2 |
# Copyright (c) 2006-2007 Dennis Kaarsemaker
|
|
3 |
#
|
|
4 |
# This program is free software; you can redistribute it and/or modify
|
|
5 |
# it under the terms of version 2 of the GNU General Public License as
|
|
6 |
# published by the Free Software Foundation.
|
|
7 |
#
|
|
8 |
# This program is distributed in the hope that it will be useful,
|
|
9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11 |
# GNU General Public License for more details.
|
|
12 |
#
|
|
13 |
###
|
|
14 |
||
15 |
import supybot.conf as conf |
|
16 |
import supybot.registry as registry |
|
17 |
||
18 |
def configure(advanced): |
|
19 |
from supybot.questions import expect, anything, something, yn |
|
20 |
conf.registerPlugin('Mess', True) |
|
21 |
||
22 |
Mess = conf.registerPlugin('Mess') |
|
23 |
conf.registerChannelValue(conf.supybot.plugins.Mess, 'enabled', |
|
72
by Terence Simpson
Added @help values |
24 |
registry.Boolean(False,"""Enable the non-offensive mess that the bot can spit out in the |
67
by Dennis Kaarsemaker
Mess and Lart are back |
25 |
channel""")) |
26 |
conf.registerChannelValue(conf.supybot.plugins.Mess, 'offensive', |
|
27 |
registry.Boolean(False,"""Enable all possibly offensive mess that the bot can spit out in the |
|
28 |
channel""")) |
|
29 |
conf.registerChannelValue(conf.supybot.plugins.Mess, 'delay', |
|
30 |
registry.Integer(10,""" Minimum number of seconds between mess """)) |