1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Nuovi /rage in shuffle!

This commit is contained in:
Steffo 2015-10-08 18:39:56 +02:00
parent 2a33906356
commit 1eb276c8f4

11
bot.py
View file

@ -1,6 +1,10 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import telegram import telegram
import steam import steam
import random
#Playlist di /rage, si riempie quando è vuota
rage = []
print("Bot avviato!") print("Bot avviato!")
while(True): while(True):
@ -29,4 +33,9 @@ while(True):
else: else:
telegram.sendMessage(chr(9888) + " Non hai specificato un gioco! [Visualizza tutte le offerte](https://isthereanydeal.com/#/search:.;/scroll:%23gamelist).", sby) telegram.sendMessage(chr(9888) + " Non hai specificato un gioco! [Visualizza tutte le offerte](https://isthereanydeal.com/#/search:.;/scroll:%23gamelist).", sby)
elif(cmd[0].startswith('/rage')): elif(cmd[0].startswith('/rage')):
telegram.sendDocument("BQADAgAD3wEAAh8GgAE6ZnLP5_gFMwI", sby) if(len(rage) <= 0):
#Elenco degli audio disponibili
rage = ['BQADAgAD3wEAAh8GgAE6ZnLP5_gFMwI', 'BQADAgAD5AEAAh8GgAGu0FpK_X2DuQI', 'BQADAgAD5gEAAh8GgAGvUTJ9meZixwI', 'BQADAgAD5wEAAh8GgAHJSoUnCr9WxwI']
random.shuffle(rage)
ragesend = rage.pop()
telegram.sendDocument(ragesend, sby)