Added question to ask if the user wants the bot to join any channels

This commit is contained in:
Jeremy Fincher 2003-03-28 08:25:34 +00:00
parent 6859415bc5
commit fc1b9f8cdb
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ if __name__ == '__main__':
configfd.write(anything('What command?'))
configfd.write('\n')
configfd.write('\n')
if yn('Do you want the bot to join any channels?') == 'y':
channels = anything('What channels? (separate channels by spaces)')
configfd.write('join %s\n' % channels)
postConnect = 'Would you like any commands to run ' \
'when the bot is finished connecting to the server?'
while yn(postConnect) == 'y':