Make some unnecessary questions for advanced users only.

This commit is contained in:
James Vega 2005-04-04 03:16:06 +00:00
parent 43bec2808c
commit e691c94ba2
1 changed files with 23 additions and 26 deletions

View File

@ -379,11 +379,11 @@ def main():
defaultIdent = 'supybot' defaultIdent = 'supybot'
if advanced: if advanced:
output("""IRC servers also allow you to set your ident, which they output("""IRC servers also allow you to set your ident, which they
might need if they can't find your identd server. What would you might need if they can't find your identd server. What would you like
like your ident to be? If you don't care, press enter and we'll your ident to be? If you don't care, press enter and we'll use
use 'supybot'. In fact, we prefer that you 'supybot'. In fact, we prefer that you do this, because it provides
do this, because it provides free advertising for Supybot when users free advertising for Supybot when users /whois your bot. But, of
/whois your bot. But, of course, it's your call.""") course, it's your call.""")
while True: while True:
ident = something('What would you like your bot\'s ident to be?', ident = something('What would you like your bot\'s ident to be?',
default=defaultIdent) default=defaultIdent)
@ -391,8 +391,8 @@ def main():
conf.supybot.ident.set(ident) conf.supybot.ident.set(ident)
break break
except registry.InvalidRegistryValue: except registry.InvalidRegistryValue:
output("""That was not a valid ident. output("""That was not a valid ident. Go ahead and pick
Go ahead and pick another.""") another.""")
else: else:
conf.supybot.ident.set(defaultIdent) conf.supybot.ident.set(defaultIdent)
@ -562,6 +562,7 @@ def main():
# logging variables. # logging variables.
### ###
if advanced:
# conf.supybot.log.stdout # conf.supybot.log.stdout
output("""By default, your bot will log not only to files in the logs output("""By default, your bot will log not only to files in the logs
directory you gave it, but also to stdout. We find this useful for directory you gave it, but also to stdout. We find this useful for
@ -571,18 +572,14 @@ def main():
conf.supybot.log.stdout.setValue(stdout) conf.supybot.log.stdout.setValue(stdout)
if conf.supybot.log.stdout(): if conf.supybot.log.stdout():
# conf.something # conf.something
output("""Some terminals may not be able to display the pretty colors output("""Some terminals may not be able to display the pretty
logged to stderr. By default, though, we turn the colors off for colors logged to stderr. By default, though, we turn the colors
Windows machines and leave it on for *nix machines.""") off for Windows machines and leave it on for *nix machines.""")
if os.name is not 'nt': if os.name is not 'nt':
conf.supybot.log.stdout.colorized.setValue( conf.supybot.log.stdout.colorized.setValue(
not yn('Would you like to turn this colorization off?', not yn('Would you like to turn this colorization off?',
default=False)) default=False))
if advanced:
output("""Here's some stuff you only get to choose if you're an
advanced user :)""")
# conf.supybot.log.level # conf.supybot.log.level
output("""Your bot can handle debug messages at several priorities, output("""Your bot can handle debug messages at several priorities,
CRITICAL, ERROR, WARNING, INFO, and DEBUG, in decreasing order of CRITICAL, ERROR, WARNING, INFO, and DEBUG, in decreasing order of