changeset 6:40c27324a72b draft

Add option to print category, question & answer
author Alexander Berntsen <alexander@plaimi.net>
date Mon, 15 Apr 2013 14:32:27 +0200
parents f813d6cfffba
children 29671797f5b7
files config.py q
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/config.py
+++ b/config.py
@@ -6,3 +6,4 @@
 password = False
 masters = [nickname, 'my_nickname']
 hiscoresdb = 'hiscores.sql'
+verbose = True
--- a/q
+++ b/q
@@ -154,6 +154,8 @@
         self.answer = cqa[2]
         self.msg(self.factory.channel, 'TOPIC: %s - Q: %s' %
                 (self.category, self.question))
+        if config.verbose:
+            print '%s - %s - %s' % (self.category, self.question, self.answer)
         # Make list of hidden parts of the answer.
         self.answer_masks = range(len(str(self.answer)))
         # Set how many characters are revealed per hint.