Fix NoneType when listening 42

This commit is contained in:
Némunaire 2012-05-21 12:33:52 +02:00
parent 480c411a9d
commit d6a47787ce

5
qd.py
View File

@ -406,9 +406,12 @@ class GameUpdater(threading.Thread):
def run(self):
global DELAYED, QUESTIONS, LASTQUESTION
if self.bfrseen is not None:
seen = datetime.now() - self.bfrseen
rnd = random.randint(0, seen.seconds/90)
else:
rnd = 1
if rnd != 0:
if self.msg.channel == "#nemutest":
quest = 9