1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Steffo 2016-11-13 20:07:31 +01:00
commit efdb603ef3
2 changed files with 5 additions and 2 deletions

View file

@ -26,4 +26,6 @@ Create a `steamapi.txt` file containing the [Steam API key](http://steamcommunit
Create a `telegramapi.txt` file containing the token you received from [@BotFather](http://telegram.me/botfather). Create a `telegramapi.txt` file containing the token you received from [@BotFather](http://telegram.me/botfather).
Create an empty `ragelevel.txt` file. It will be filled with /balurage levels.
Run `python3.5 -OO bot.py`. Run `python3.5 -OO bot.py`.

5
bot.py
View file

@ -495,7 +495,8 @@ def smecds():
"della sedia", "di Satana", "del Sangue (degli occhi di Adry)", "del Sale", "della sedia", "di Satana", "del Sangue (degli occhi di Adry)", "del Sale",
"del Serpente", "della Samsung", "di /smecds", "della succursale", "di succ", "del Serpente", "della Samsung", "di /smecds", "della succursale", "di succ",
"di Sans", "di [SiivaGunner](https://www.youtube.com/channel/UC9ecwl3FTG66jIKA9JRDtmg)", "di Sans", "di [SiivaGunner](https://www.youtube.com/channel/UC9ecwl3FTG66jIKA9JRDtmg)",
"di saaaaaas", "del semaforo", "della Seriale", "di Sistemi", "della Supercell"], 1)[0] "di saaaaaas", "del semaforo", "della Seriale", "di Sistemi", "della Supercell",
"di Santaclaus", "dei Sims", "dei Santi", "di SES2017", "di Salvini"], 1)[0]
telegram.sendmessage("Secondo me è colpa {accusato}...".format(accusato=accusato), sentin, source) telegram.sendmessage("Secondo me è colpa {accusato}...".format(accusato=accusato), sentin, source)
@ -508,7 +509,7 @@ def version():
def match(): def match():
# Visualizza tutti i giochi condivisi tra x persone. # Visualizza detutti i giochi condivisi tra x persone.
print("@" + username + ": /match") print("@" + username + ": /match")
# Informa Telegram che il messaggio è stato ricevuto. # Informa Telegram che il messaggio è stato ricevuto.
telegram.sendchataction(sentin) telegram.sendchataction(sentin)