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,26 +562,23 @@ def main():
# logging variables. # logging variables.
### ###
# conf.supybot.log.stdout
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
debugging, and also just for the pretty output (it's colored!)""")
stdout = not yn('Would you like to turn off this logging to stdout?',
default=False)
conf.supybot.log.stdout.setValue(stdout)
if conf.supybot.log.stdout():
# conf.something
output("""Some terminals may not be able to display the pretty colors
logged to stderr. By default, though, we turn the colors off for
Windows machines and leave it on for *nix machines.""")
if os.name is not 'nt':
conf.supybot.log.stdout.colorized.setValue(
not yn('Would you like to turn this colorization off?',
default=False))
if advanced: if advanced:
output("""Here's some stuff you only get to choose if you're an # conf.supybot.log.stdout
advanced user :)""") 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
debugging, and also just for the pretty output (it's colored!)""")
stdout = not yn('Would you like to turn off this logging to stdout?',
default=False)
conf.supybot.log.stdout.setValue(stdout)
if conf.supybot.log.stdout():
# conf.something
output("""Some terminals may not be able to display the pretty
colors logged to stderr. By default, though, we turn the colors
off for Windows machines and leave it on for *nix machines.""")
if os.name is not 'nt':
conf.supybot.log.stdout.colorized.setValue(
not yn('Would you like to turn this colorization off?',
default=False))
# 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,