Explorar el Código

Rename some defaults for Libera

tags/v0.4
Ben Kurtovic hace 3 años
padre
commit
9ee44932f6
Se han modificado 2 ficheros con 7 adiciones y 7 borrados
  1. +6
    -6
      earwigbot/config/script.py
  2. +1
    -1
      earwigbot/irc/connection.py

+ 6
- 6
earwigbot/config/script.py Ver fichero

@@ -184,7 +184,7 @@ class ConfigScript:
self._print("""The bot contains three separate components that can run
independently of each other.""")
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.""")
self._print("""- The IRC watcher runs on a wiki recent-changes server,
like irc.wikimedia.org, and listens for edits. Users
@@ -313,12 +313,12 @@ class ConfigScript:
if self.data["components"]["irc_frontend"]:
print()
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["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):"
frontend["realname"] = self._ask(question, "EarwigBot")
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
be easily spoofed. If you have a cloak, this will
probably look like 'wikipedia/Username' or
'unaffiliated/nickname'.""")
'user/nickname'.""")
host = self._ask("Your hostname on the frontend:", require=False)
if host:
permdb = self.config._permissions


+ 1
- 1
earwigbot/irc/connection.py Ver fichero

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

@property
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

@property


Cargando…
Cancelar
Guardar