Browse Source

Rename some defaults for Libera

tags/v0.4
Ben Kurtovic 3 years ago
parent
commit
9ee44932f6
2 changed files with 7 additions and 7 deletions
  1. +6
    -6
      earwigbot/config/script.py
  2. +1
    -1
      earwigbot/irc/connection.py

+ 6
- 6
earwigbot/config/script.py View File

@@ -184,7 +184,7 @@ class ConfigScript:
self._print("""The bot contains three separate components that can run self._print("""The bot contains three separate components that can run
independently of each other.""") independently of each other.""")
self._print("""- The IRC front-end runs on a normal IRC server, like self._print("""- The IRC front-end runs on a normal IRC server, like
freenode, and expects users to interact with it through
Libera, and expects users to interact with it through
commands.""") commands.""")
self._print("""- The IRC watcher runs on a wiki recent-changes server, self._print("""- The IRC watcher runs on a wiki recent-changes server,
like irc.wikimedia.org, and listens for edits. Users like irc.wikimedia.org, and listens for edits. Users
@@ -313,12 +313,12 @@ class ConfigScript:
if self.data["components"]["irc_frontend"]: if self.data["components"]["irc_frontend"]:
print() print()
frontend = self.data["irc"]["frontend"] = OrderedDict() frontend = self.data["irc"]["frontend"] = OrderedDict()
msg = "Hostname of the frontend's IRC server, without 'irc://':"
frontend["host"] = self._ask(msg, "irc.freenode.net")
frontend["host"] = self._ask(
"Hostname of the frontend's IRC server:", "irc.libera.chat")
frontend["port"] = self._ask("Frontend port:", 6667) frontend["port"] = self._ask("Frontend port:", 6667)
frontend["nick"] = self._ask("Frontend bot's nickname:") frontend["nick"] = self._ask("Frontend bot's nickname:")
frontend["ident"] = self._ask("Frontend bot's ident:",
frontend["nick"].lower())
frontend["ident"] = self._ask(
"Frontend bot's ident:", frontend["nick"].lower())
question = "Frontend bot's real name (gecos):" question = "Frontend bot's real name (gecos):"
frontend["realname"] = self._ask(question, "EarwigBot") frontend["realname"] = self._ask(question, "EarwigBot")
if self._ask_bool("Should the bot identify to NickServ?"): if self._ask_bool("Should the bot identify to NickServ?"):
@@ -336,7 +336,7 @@ class ConfigScript:
Hostname is the most secure option since it cannot Hostname is the most secure option since it cannot
be easily spoofed. If you have a cloak, this will be easily spoofed. If you have a cloak, this will
probably look like 'wikipedia/Username' or probably look like 'wikipedia/Username' or
'unaffiliated/nickname'.""")
'user/nickname'.""")
host = self._ask("Your hostname on the frontend:", require=False) host = self._ask("Your hostname on the frontend:", require=False)
if host: if host:
permdb = self.config._permissions permdb = self.config._permissions


+ 1
- 1
earwigbot/irc/connection.py View File

@@ -160,7 +160,7 @@ class IRCConnection:


@property @property
def host(self): def host(self):
"""The hostname of the IRC server, like ``"irc.freenode.net"``."""
"""The hostname of the IRC server, like ``"irc.libera.chat"``."""
return self._host return self._host


@property @property


Loading…
Cancel
Save