mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-03 01:39:23 +01:00
Added question for prefixChar.
This commit is contained in:
parent
900fa495f8
commit
e1e2605c45
@ -220,6 +220,18 @@ if __name__ == '__main__':
|
|||||||
except:
|
except:
|
||||||
print 'Sorry, twisted doesn\'t seem to be installed.'
|
print 'Sorry, twisted doesn\'t seem to be installed.'
|
||||||
|
|
||||||
|
print 'Supybot can allow an owner user to evaluated arbitrary Python '
|
||||||
|
print 'code. Obviously, this is disabled by default just in case '
|
||||||
|
print 'there happens to be a bug in supybot\'s code. '
|
||||||
|
if yn('Would you like to enable evaluation of arbitrary Python?')=='y':
|
||||||
|
configVariables['allowEval'] = True
|
||||||
|
print 'Supybot can accept a "prefix character" (or many!) to determine '
|
||||||
|
print 'whether or not he\'s being addressed by someone. For instance, if '
|
||||||
|
print 'his prefixChar is "@", then "@cpustats" has the same effect as '
|
||||||
|
print '"supybot: cpustats".'
|
||||||
|
s = anything('What would you like supybot\'s prefixChar(s) to be?')
|
||||||
|
configVariables['prefixChars'] = s
|
||||||
|
|
||||||
|
|
||||||
template = template.replace('%%configVariables%%',
|
template = template.replace('%%configVariables%%',
|
||||||
pprint.pformat(configVariables))
|
pprint.pformat(configVariables))
|
||||||
|
Loading…
Reference in New Issue
Block a user