From 368d25d7f326a1c899b6dc244e180f872d3cd8d5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 20 Feb 2017 12:56:02 +0100 Subject: [PATCH] rly --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index fb4bd1f5..a83748eb 100644 --- a/bot.py +++ b/bot.py @@ -439,7 +439,7 @@ def leggi(): print("@" + username + ": /leggi") if len(cmd) == 1: telegram.sendmessage("[Apri il diario RYG](http://royal.steffo.me/diario.htm)!\n_(Puoi visualizzare un elemento casuale scrivendo /leggi random o leggere un elemento specifico con /leggi [numero])_", sentin, source) - else if cmd[1] == "random": + elif cmd[1] == "random": fdiario = filemanager.readfile("diario.txt").split("\n") n = random.randrange(len(fdiario)) entry = fdiario[n].split("|")