Clarify which bitbotd -a options are optional (#263)

Also disambiguate alias vs. hostname a little, just in case.
This commit is contained in:
Dax 2021-02-05 16:34:22 -08:00 committed by GitHub
parent 3fa2034c25
commit 5d2a3865a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,15 +5,15 @@ def bool_input(s: str):
return not result or result[0].lower() in ["", "y"] return not result or result[0].lower() in ["", "y"]
def add_server(): def add_server():
alias = input("alias: ") alias = input("alias (display name): ")
hostname = input("hostname: ") hostname = input("hostname (address of server): ")
port = int(input("port: ")) port = int(input("port: "))
tls = bool_input("tls?") tls = bool_input("tls?")
password = input("password?: ") password = input("password (optional, leave blank to skip): ")
nickname = input("nickname: ") nickname = input("nickname: ")
username = input("username: ") username = input("username (optional): ")
realname = input("realname: ") realname = input("realname (optional): ")
bindhost = input("bindhost?: ") bindhost = input("bindhost (optional): ")
return irc.IRCConnectionParameters(-1, alias, hostname, port, password, tls, return irc.IRCConnectionParameters(-1, alias, hostname, port, password, tls,
bindhost, nickname, username, realname) bindhost, nickname, username, realname)