fix joining channels on startup
This commit is contained in:
parent
bd5621f9bd
commit
7009169145
6
bert.py
6
bert.py
|
@ -270,7 +270,7 @@ def ping(msg):
|
||||||
sendRaw("PONG :"+msg+"\n")
|
sendRaw("PONG :"+msg+"\n")
|
||||||
|
|
||||||
|
|
||||||
def start(host, port, nick, password, chan):
|
def start(host, port, nick, password, chans):
|
||||||
try:
|
try:
|
||||||
connect(host, port)
|
connect(host, port)
|
||||||
sleep(2)
|
sleep(2)
|
||||||
|
@ -280,7 +280,7 @@ def start(host, port, nick, password, chan):
|
||||||
sleep(6)
|
sleep(6)
|
||||||
auth(nick, password)
|
auth(nick, password)
|
||||||
sleep(2)
|
sleep(2)
|
||||||
for chan in fefe_chans:
|
for chan in chans:
|
||||||
join(chan)
|
join(chan)
|
||||||
sleep(2)
|
sleep(2)
|
||||||
mode(nick)
|
mode(nick)
|
||||||
|
@ -598,7 +598,7 @@ class gc_thread(threading.Thread):
|
||||||
gc_cycle()
|
gc_cycle()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
start(host, port, nick, password, chan)
|
start(host, port, nick, password, set(join_chans + fefe_chans))
|
||||||
global api
|
global api
|
||||||
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
|
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
|
||||||
auth.set_access_token(access_token, access_secret)
|
auth.set_access_token(access_token, access_secret)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user