From ac379eb44cabb8fa0441a1336f463c6fa60673a2 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 18 Dec 2021 18:37:46 +0100 Subject: [PATCH] supybot-wizard: Ask for SASL username and password --- scripts/supybot-wizard | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/supybot-wizard b/scripts/supybot-wizard index 9be21609f..0bd76d025 100644 --- a/scripts/supybot-wizard +++ b/scripts/supybot-wizard @@ -486,6 +486,26 @@ def main(): except registry.InvalidRegistryValue: output("""That's not a valid nick. Go ahead and pick another.""") + # conf.supybot.networks..sasl.{username,password} + output("""Most networks allow you to create an account, using services + typically known as NickServ. If you already have one, you can configure + the bot to use that account by proving your username and password + (also known as "SASL plain"). + It is usually not a requirement.""") + if yn('Do you want your bot to use a network account?', default=False): + while True: + username = something('What account name should the bot use?') + password = getpass('What is the password of that account?') + if not username: + if yn('Missing username. Do you want to try again?'): + continue + if not password: + if yn('Missing password. Do you want to try again?'): + continue + network.sasl.username.set(password) + network.sasl.password.set(password) + break + # conf.supybot.user if advanced: output("""If you've ever done a /whois on a person, you know that IRC