]> git.aero2k.de Git - urlbot-v3.git/commitdiff
klugscheißerbot fixed
authorThorsten S <mail@aero2k.de>
Fri, 3 Jan 2020 21:21:55 +0000 (22:21 +0100)
committerThorsten S <mail@aero2k.de>
Fri, 3 Jan 2020 21:21:55 +0000 (22:21 +0100)
distbot/plugins/didyouknow.py

index 5d4f11d4378cae168b93588d8c362375e9ff1b0f..87f85d8054863ab15edfa846bc425ff7c23e946f 100644 (file)
@@ -99,6 +99,7 @@ class DidYouKnow(Worker):
 
     def parse_body(self, msg):
         fact = random.choice(DB)
+        answer = random.choice(self.answers)
         return Action(msg="{} {}".format(answer, fact))