mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Made sure the wizard doesn't allow bad prefixchars.
This commit is contained in:
parent
d21a99a37a
commit
b727890b15
@ -429,8 +429,14 @@ def main():
|
||||
on accident). You can even have more than one. I (jemfinch) am quite
|
||||
partial to @, but that's because I've been using it since my ocamlbot
|
||||
days.""")
|
||||
import callbacks
|
||||
conf.prefixChars = anything('What would you like your bot\'s '
|
||||
'prefix character(s) to be?')
|
||||
while callbacks.canonicalName(conf.prefixChars) != conf.prefixChars:
|
||||
conf.prefixChars = anything('That includes one or more invalid '
|
||||
'prefix characters. What would you'
|
||||
'like your bot\'s prefix character(s)'
|
||||
'to be?')
|
||||
configVariables['prefixChars'] = conf.prefixChars
|
||||
else:
|
||||
configVariables['prefixChars'] = ''
|
||||
|
Loading…
Reference in New Issue
Block a user