Fix NoneType when listening 42
This commit is contained in:
parent
480c411a9d
commit
d6a47787ce
5
qd.py
5
qd.py
@ -406,9 +406,12 @@ class GameUpdater(threading.Thread):
|
|||||||
def run(self):
|
def run(self):
|
||||||
global DELAYED, QUESTIONS, LASTQUESTION
|
global DELAYED, QUESTIONS, LASTQUESTION
|
||||||
|
|
||||||
|
if self.bfrseen is not None:
|
||||||
seen = datetime.now() - self.bfrseen
|
seen = datetime.now() - self.bfrseen
|
||||||
|
|
||||||
rnd = random.randint(0, seen.seconds/90)
|
rnd = random.randint(0, seen.seconds/90)
|
||||||
|
else:
|
||||||
|
rnd = 1
|
||||||
|
|
||||||
if rnd != 0:
|
if rnd != 0:
|
||||||
if self.msg.channel == "#nemutest":
|
if self.msg.channel == "#nemutest":
|
||||||
quest = 9
|
quest = 9
|
||||||
|
Loading…
Reference in New Issue
Block a user