.BANCHO. Add userID cache

This commit is contained in:
Nyo
2016-09-04 10:56:10 +02:00
parent cf60c167b6
commit 9ee2e5d7ff
5 changed files with 23 additions and 18 deletions

View File

@@ -25,6 +25,7 @@ fLocks = fileLocks.fileLocks()
verifiedCache = {}
cloudflare = False
chatFilters = None
userIDCache = {}
debug = False
outputRequestTime = False
@@ -33,5 +34,6 @@ discord = False
gzip = False
localize = False
sentry = False
irc = False
startTime = int(time.time())

View File

@@ -11,6 +11,7 @@ import threading
from helpers import chatHelper as chat
class token:
def __init__(self, userID, token_ = None, ip ="", irc = False, timeOffset = 0):
"""
Create a token object and set userID and token