1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00
This commit is contained in:
Steffo 2015-10-04 11:41:25 +02:00
parent e0072abc3f
commit 06c1a3ecde

2
bot.py
View file

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