fix joining channels on startup

This commit is contained in:
jkhsjdhjs 2023-07-16 22:24:05 +00:00
parent bd5621f9bd
commit 7009169145

View File

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