mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +00:00
Supporto per in gioco
This commit is contained in:
parent
19eecdab2a
commit
b3bfa8e620
1 changed files with 6 additions and 1 deletions
|
@ -117,6 +117,8 @@ while(True):
|
||||||
if(steam['response']['players']):
|
if(steam['response']['players']):
|
||||||
online = steam['response']['players'][0]['personastate']
|
online = steam['response']['players'][0]['personastate']
|
||||||
name = steam['response']['players'][0]['personaname']
|
name = steam['response']['players'][0]['personaname']
|
||||||
|
if(steam['response']['players'][0]['gameextrainfo']):
|
||||||
|
ingame = steam['response']['players'][0]['gameextrainfo']
|
||||||
text = ""
|
text = ""
|
||||||
if(online == 0):
|
if(online == 0):
|
||||||
text = unichr(9898) + " Offline"
|
text = unichr(9898) + " Offline"
|
||||||
|
@ -132,6 +134,9 @@ while(True):
|
||||||
text = unichr(55357) + unichr(56629) + " Disponibile per scambiare"
|
text = unichr(55357) + unichr(56629) + " Disponibile per scambiare"
|
||||||
elif(online == 6):
|
elif(online == 6):
|
||||||
text = unichr(55357) + unichr(56629) + " Disponibile per giocare"
|
text = unichr(55357) + unichr(56629) + " Disponibile per giocare"
|
||||||
|
if ingame:
|
||||||
|
sendMessage(name + " sta giocando a " + ingame + ".", msg['chat']['id'])
|
||||||
|
else:
|
||||||
sendMessage(name + " e' " + text + ".", msg['chat']['id'])
|
sendMessage(name + " e' " + text + ".", msg['chat']['id'])
|
||||||
else:
|
else:
|
||||||
sendMessage("Lo steamid non esiste!", msg['chat']['id'])
|
sendMessage("Lo steamid non esiste!", msg['chat']['id'])
|
Loading…
Reference in a new issue