mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 13:12:35 +01:00
Updated the configure function.
This commit is contained in:
parent
fd132f20ad
commit
4fa547c1c6
@ -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.'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user