forked from AI621/ai621
use bot_token for client.start
This commit is contained in:
parent
17bf9835c7
commit
7bed58748b
2
bot.py
2
bot.py
|
@ -620,6 +620,6 @@ if __name__ == '__main__':
|
||||||
continue
|
continue
|
||||||
client.queue.put_nowait((task['id'], task['id'],))
|
client.queue.put_nowait((task['id'], task['id'],))
|
||||||
|
|
||||||
client.start()
|
client.start(bot_token=bot_token)
|
||||||
client.flood_sleep_threshold = 24*60*60
|
client.flood_sleep_threshold = 24*60*60
|
||||||
client.run_until_disconnected()
|
client.run_until_disconnected()
|
||||||
|
|
Loading…
Reference in New Issue