2016-04-19 17:40:59 +00:00
|
|
|
"""Global objects and variables"""
|
|
|
|
|
2016-10-02 20:48:14 +00:00
|
|
|
import time
|
|
|
|
from common.ddog import datadogClient
|
|
|
|
from common.files import fileBuffer, fileLocks
|
2016-05-18 17:12:46 +00:00
|
|
|
from objects import channelList
|
|
|
|
from objects import matchList
|
2016-10-01 19:19:03 +00:00
|
|
|
from objects import streamList
|
2016-10-02 20:48:14 +00:00
|
|
|
from objects import tokenList
|
|
|
|
from common.web import schiavo
|
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 == "":
|
2016-11-17 18:13:06 +00:00
|
|
|
raise Exception
|
2016-06-17 11:11:12 +00:00
|
|
|
except:
|
2016-11-17 19:10:32 +00:00
|
|
|
VERSION = "Unknown"
|
2016-04-19 17:40:59 +00:00
|
|
|
|
2016-10-02 20:48:14 +00:00
|
|
|
DATADOG_PREFIX = "peppy"
|
2016-09-16 16:21:34 +00:00
|
|
|
application = None
|
2016-04-19 17:40:59 +00:00
|
|
|
db = None
|
2016-11-15 19:36:29 +00:00
|
|
|
redis = None
|
2016-04-19 17:40:59 +00:00
|
|
|
conf = None
|
|
|
|
banchoConf = None
|
|
|
|
tokens = tokenList.tokenList()
|
|
|
|
channels = channelList.channelList()
|
|
|
|
matches = matchList.matchList()
|
2016-06-06 10:39:24 +00:00
|
|
|
fLocks = fileLocks.fileLocks()
|
2016-09-04 10:01:10 +00:00
|
|
|
fileBuffers = fileBuffer.buffersList()
|
2016-10-02 20:48:14 +00:00
|
|
|
schiavo = schiavo.schiavo()
|
|
|
|
dog = datadogClient.datadogClient()
|
2016-07-20 09:59:53 +00:00
|
|
|
verifiedCache = {}
|
2016-08-10 10:00:33 +00:00
|
|
|
chatFilters = None
|
2016-09-04 14:07:10 +00:00
|
|
|
pool = None
|
2016-10-02 21:11:18 +00:00
|
|
|
ircServer = None
|
2016-09-16 16:21:34 +00:00
|
|
|
busyThreads = 0
|
2016-06-04 10:44:54 +00:00
|
|
|
|
|
|
|
debug = False
|
|
|
|
outputRequestTime = False
|
|
|
|
outputPackets = False
|
|
|
|
gzip = False
|
|
|
|
localize = False
|
2016-06-15 17:01:00 +00:00
|
|
|
sentry = False
|
2016-09-04 08:56:10 +00:00
|
|
|
irc = False
|
2016-11-13 11:25:38 +00:00
|
|
|
restarting = False
|
2016-08-28 15:25:47 +00:00
|
|
|
|
|
|
|
startTime = int(time.time())
|
2016-10-01 19:19:03 +00:00
|
|
|
|
|
|
|
streams = streamList.streamList()
|