pep.py/objects/glob.py

51 lines
1.0 KiB
Python
Raw Normal View History

2016-04-19 19:40:59 +02:00
"""Global objects and variables"""
2016-10-02 22:48:14 +02:00
import time
from common.ddog import datadogClient
from common.files import fileBuffer, fileLocks
2016-05-18 19:12:46 +02:00
from objects import channelList
from objects import matchList
from objects import streamList
2016-10-02 22:48:14 +02:00
from objects import tokenList
from common.web import schiavo
2016-04-19 19:40:59 +02:00
2016-06-17 13:11:12 +02:00
try:
with open("version") as f:
VERSION = f.read().strip()
if VERSION == "":
raise Exception
2016-06-17 13:11:12 +02:00
except:
2016-11-17 20:10:32 +01:00
VERSION = "Unknown"
2016-04-19 19:40:59 +02:00
2016-10-02 22:48:14 +02:00
DATADOG_PREFIX = "peppy"
application = None
2016-04-19 19:40:59 +02:00
db = None
redis = None
2016-04-19 19:40:59 +02:00
conf = None
banchoConf = None
tokens = tokenList.tokenList()
channels = channelList.channelList()
matches = matchList.matchList()
2016-06-06 12:39:24 +02:00
fLocks = fileLocks.fileLocks()
2016-09-04 12:01:10 +02:00
fileBuffers = fileBuffer.buffersList()
2016-10-02 22:48:14 +02:00
schiavo = schiavo.schiavo()
dog = datadogClient.datadogClient()
verifiedCache = {}
2016-08-10 12:00:33 +02:00
chatFilters = None
pool = None
ircServer = None
busyThreads = 0
debug = False
outputRequestTime = False
outputPackets = False
gzip = False
localize = False
2016-06-15 19:01:00 +02:00
sentry = False
2016-09-04 10:56:10 +02:00
irc = False
restarting = False
startTime = int(time.time())
streams = streamList.streamList()