2016-04-19 17:40:59 +00:00
|
|
|
"""Global objects and variables"""
|
|
|
|
|
2016-05-18 17:12:46 +00:00
|
|
|
from objects import tokenList
|
|
|
|
from objects import channelList
|
|
|
|
from objects import matchList
|
2016-06-06 10:39:24 +00:00
|
|
|
from objects import fileLocks
|
2016-08-28 15:25:47 +00:00
|
|
|
import time
|
2016-04-19 17:40:59 +00:00
|
|
|
|
2016-06-17 11:11:12 +00:00
|
|
|
try:
|
|
|
|
with open("version") as f:
|
|
|
|
VERSION = f.read()
|
2016-07-14 10:37:07 +00:00
|
|
|
if VERSION == "":
|
|
|
|
raise
|
2016-06-17 11:11:12 +00:00
|
|
|
except:
|
|
|
|
VERSION = "¯\_(xd)_/¯"
|
2016-04-19 17:40:59 +00:00
|
|
|
|
|
|
|
db = None
|
|
|
|
conf = None
|
|
|
|
banchoConf = None
|
|
|
|
tokens = tokenList.tokenList()
|
|
|
|
channels = channelList.channelList()
|
|
|
|
matches = matchList.matchList()
|
|
|
|
restarting = False
|
2016-06-06 10:39:24 +00:00
|
|
|
fLocks = fileLocks.fileLocks()
|
2016-07-20 09:59:53 +00:00
|
|
|
verifiedCache = {}
|
2016-06-23 15:51:19 +00:00
|
|
|
cloudflare = False
|
2016-08-10 10:00:33 +00:00
|
|
|
chatFilters = None
|
2016-06-04 10:44:54 +00:00
|
|
|
|
|
|
|
debug = False
|
|
|
|
outputRequestTime = False
|
|
|
|
outputPackets = False
|
2016-06-02 17:22:02 +00:00
|
|
|
discord = False
|
2016-06-04 10:44:54 +00:00
|
|
|
gzip = False
|
|
|
|
localize = False
|
2016-06-15 17:01:00 +00:00
|
|
|
sentry = False
|
2016-08-28 15:25:47 +00:00
|
|
|
|
|
|
|
startTime = int(time.time())
|