summaryrefslogtreecommitdiffstats
path: root/taulubot.py
diff options
context:
space:
mode:
Diffstat (limited to 'taulubot.py')
-rw-r--r--taulubot.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/taulubot.py b/taulubot.py
index 88a6d90..c0c5c8e 100644
--- a/taulubot.py
+++ b/taulubot.py
@@ -51,7 +51,9 @@ def run_taulu(chat_id, user_id):
im.thumbnail(img_size, Image.ANTIALIAS)
# every 100th image has golden borders :)
- if random.randrange(1, 100) == 1:
+ golden_chance = random.randrange(1, 100)
+ logging.warning("Random gold number was: {}".format(golden_chance))
+ if golden_chance == 1:
im.paste(golden_im, (0, 0), golden_im)
bot.sendMessage(chat_id, "Onneksi olkoon! Kultainen taulu ilmestyy vain kerran tuhannessa vuodessa!")
else: