From a5627c34f89c7cd0d1a5bca640d040391f247718 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 17 Nov 2003 06:15:36 +0000 Subject: [PATCH] Made the 'add any more commands' dealio a little more intuitive, I think. --- scripts/supybot-wizard | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/supybot-wizard b/scripts/supybot-wizard index 83a4acc08..d5b3ee60d 100755 --- a/scripts/supybot-wizard +++ b/scripts/supybot-wizard @@ -35,7 +35,7 @@ def wrapWithBold(f): return ret return ff -from questions import yn, anything, something, expect +from questions import yn, anything, something, expect, getpass yn = wrapWithBold(yn) expect = wrapWithBold(expect) anything = wrapWithBold(anything) @@ -587,16 +587,18 @@ def main(): write the bot script.""") if yn('Would you like to add any commands to be given to the bot ' 'before it connects to the server?') == 'y': - command = anything('What command? Just press enter when done.') + command = True while command: + command = something('Command? ') onStart.append(command) - command = anything('Another command?') + command = yn('Would you like to add another command?') == 'y' if yn('Would you like to add any commands to be given to the bot ' 'after it connects to the server?') == 'y': - command = anything('What command? Just press enter when done.') + command = True while command: + command = Something('Command? ') afterConnect.append(command) - command = anything('Another command?') + command = yn('Would you like to add another command?') == 'y' ### # Writing the bot script.