Compare commits
2 Commits
e416a9d79a
...
b09efae29d
Author | SHA1 | Date |
---|---|---|
hedy | b09efae29d | |
hedy | 719bae9246 |
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
9
main.py
9
main.py
|
@ -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):
|
||||
|
|
|
@ -1 +1 @@
|
|||
ircrobots
|
||||
ircrobots~=0.6
|
||||
|
|
Loading…
Reference in New Issue