-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserve.py
More file actions
executable file
·29 lines (22 loc) · 806 Bytes
/
serve.py
File metadata and controls
executable file
·29 lines (22 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
# Twitch Plays
# Inpsired by http://twitch.tv/twitchplayspokemon
# Written by Aidan Thomson - <aidraj0 at gmail dot com>
from config.config import config
from threading import Thread
import lib.gui as gui
import lib.bot as bot
from lib.timer import Timer
import time
import lib.cookiecontrol as cookiecontrol
cc = cookiecontrol.CookieControl()
thread1 = Thread(target = gui.run)
thread1.start()
botinst = bot.Bot()
thread1 = Thread(target = botinst.run, args=(cc,))
thread1.start()
thread1 = Thread(target = botinst.start_golden_timer, args=(cc,))
thread1.start()
timer = Timer(cc, config['pop_timer']['hours'],config['pop_timer']['minutes'],config['pop_timer']['seconds'])
thread1 = Thread(target = gui.start_timer, args=(timer,))
thread1.start()