38 lines
1.4 KiB
Python
38 lines
1.4 KiB
Python
# -*- Encoding: utf-8 -*-
|
|
###
|
|
# Copyright (c) 2006-2007 Dennis Kaarsemaker
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of version 2 of the GNU General Public License as
|
|
# published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
###
|
|
|
|
import supybot.conf as conf
|
|
import supybot.registry as registry
|
|
|
|
def configure(advanced):
|
|
from supybot.questions import expect, something, yn
|
|
|
|
def anything(prompt, default=None):
|
|
"""Because supybot is pure fail"""
|
|
from supybot.questions import expect
|
|
return expect(prompt, [], default=default)
|
|
|
|
conf.registerPlugin('Mess', True)
|
|
|
|
Mess = conf.registerPlugin('Mess')
|
|
conf.registerChannelValue(conf.supybot.plugins.Mess, 'enabled',
|
|
registry.Boolean(False,"""Enable the non-offensive mess that the bot can spit out in the
|
|
channel"""))
|
|
conf.registerChannelValue(conf.supybot.plugins.Mess, 'offensive',
|
|
registry.Boolean(False,"""Enable all possibly offensive mess that the bot can spit out in the
|
|
channel"""))
|
|
conf.registerChannelValue(conf.supybot.plugins.Mess, 'delay',
|
|
registry.Integer(10,""" Minimum number of seconds between mess """))
|