Updated the configure function.

This commit is contained in:
Jeremy Fincher 2004-01-19 22:37:22 +00:00
parent fd132f20ad
commit 4fa547c1c6

View File

@ -52,17 +52,12 @@ import privmsgs
import callbacks import callbacks
def configure(onStart, afterConnect, advanced): def configure(advanced):
# This will be called by setup.py to configure this module. onStart and
# afterConnect are both lists. Append to onStart the commands you would
# like to be run when the bot is started; append to afterConnect the
# commands you would like to be run when the bot has finished connecting.
from questions import expect, anything, something, yn from questions import expect, anything, something, yn
onStart.append('load Dict')
print 'The default dictd server is dict.org.' print 'The default dictd server is dict.org.'
if yn('Would you like to specify a dictd server?') == 'y': if yn('Would you like to specify a different dictd server?') == 'y':
server = something('What server?') server = something('What server?')
onStart.append('dict config server %s' % server) conf.supybot.plugins.Dict.server.set(server)
replyTimeout = 'Timeout on the dictd server.' replyTimeout = 'Timeout on the dictd server.'