diff --git a/bot.py b/bot.py index e9991338..58066ca5 100644 --- a/bot.py +++ b/bot.py @@ -15,7 +15,7 @@ while(True): elif(cmd[0].startswith('/start')): telegram.sendMessage("Ascolta, io mi starto quando mi pare. Anzi, quando @Steffo ha voglia di aprirmi.", sby) elif(cmd[0].startswith('/playing')): - if(len(cmd) >= 1): + if(len(cmd) >= 2): n = steam.getNumberOfCurrentPlayers(cmd[1]) if(n == None): telegram.sendMessage(chr(9888) + " L'app specificata non esiste!", sby)