Compare commits

...

2 Commits

Author SHA1 Message Date
hedy b09efae29d
Format with black 2022-08-31 13:28:14 +08:00
hedy 719bae9246
Upgrade to ircrobots 0.6
fixes #2

...seems to work? hmm
2022-08-31 13:27:35 +08:00
4 changed files with 9 additions and 16 deletions

View File

@ -1,13 +1,13 @@
NICKNAME = "hedyrelay"
SERVERS = {
"libera": {
# host port ssl
"connection": ("irc.libera.chat", 6697, True),
# host port
"connection": ("irc.libera.chat", 6697),
"chans": ["#hedy-dev"],
"hidechan": True,
},
"tilde": {
"connection": ("irc.tilde.chat", 6697, True),
"connection": ("irc.tilde.chat", 6697),
"chans": ["##hedy-dev"],
"hidechan": True,
},
@ -15,7 +15,6 @@ SERVERS = {
"connection": (
"va.furryplace.eu",
6697,
True,
),
"chans": ["#hedy-dev"],
"hidechan": True,

View File

@ -1,13 +1,13 @@
NICKNAME = "hedyrelay"
SERVERS = {
"libera": {
# host port ssl
"connection": ("irc.libera.chat", 6697, True),
# host port
"connection": ("irc.libera.chat", 6697),
"chans": ["#hedy"],
"hidechan": True,
},
"tilde": {
"connection": ("irc.tilde.chat", 6697, True),
"connection": ("irc.tilde.chat", 6697),
"chans": ["##hedy"],
"hidechan": True,
},
@ -15,7 +15,6 @@ SERVERS = {
"connection": (
"va.furryplace.eu",
6697,
True,
),
"chans": ["#hedy"],
"hidechan": True,

View File

@ -25,7 +25,6 @@ class Server(BaseServer):
params.host,
params.port,
tls=params.tls,
tls_verify=params.tls_verify,
bindhost=params.bindhost,
)
@ -87,9 +86,7 @@ class Server(BaseServer):
if args[0] == "connect" and len(args) > 4:
await self.bot.add_server(
args[1],
ConnectionParams(
NICKNAME, args[2], args[3], bool(int(args[4]))
),
ConnectionParams(NICKNAME, args[2], args[3]),
)
for c in self.chans_actual:
await self.send(
@ -157,9 +154,7 @@ class Server(BaseServer):
else:
nargs.append(arg)
print("nargs:", nargs)
await self.send(
build(nargs[0], nargs[1:])
) # TODO: loop over chans
await self.send(build(nargs[0], nargs[1:])) # TODO: loop over chans
class Bot(BaseBot):

View File

@ -1 +1 @@
ircrobots
ircrobots~=0.6