diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2016-05-21 17:15:46 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2016-05-21 17:15:46 +0300 |
| commit | 38abc8a0f2b840e4f00651fece5bed95d5aface6 (patch) | |
| tree | 2059ec7269381b66a93ee8b066aaf0891e95a714 | |
| parent | d0156660ecb28d7e168dcf8d7f621b4505c6b7ce (diff) | |
Add logging texts
| -rw-r--r-- | taulubot.py | 4 |
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: |
