From 7009169145a14e9c6b4c048c10abadab9c41eee8 Mon Sep 17 00:00:00 2001 From: jkhsjdhjs Date: Sun, 16 Jul 2023 22:24:05 +0000 Subject: [PATCH] fix joining channels on startup --- bert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bert.py b/bert.py index 2cd0df6..460032d 100755 --- a/bert.py +++ b/bert.py @@ -270,7 +270,7 @@ def ping(msg): sendRaw("PONG :"+msg+"\n") -def start(host, port, nick, password, chan): +def start(host, port, nick, password, chans): try: connect(host, port) sleep(2) @@ -280,7 +280,7 @@ def start(host, port, nick, password, chan): sleep(6) auth(nick, password) sleep(2) - for chan in fefe_chans: + for chan in chans: join(chan) sleep(2) mode(nick) @@ -598,7 +598,7 @@ class gc_thread(threading.Thread): gc_cycle() def main(): - start(host, port, nick, password, chan) + start(host, port, nick, password, set(join_chans + fefe_chans)) global api auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_secret)