1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00

Modificato il testo per gli errori critici

This commit is contained in:
Steffo 2016-09-21 16:52:42 +02:00
parent d5fc318e85
commit 2b48d9bffb

15
bot.py
View file

@ -507,24 +507,16 @@ while True:
ciaostefanino() ciaostefanino()
elif text.startswith('/balurage') or text.startswith("/madden"): elif text.startswith('/balurage') or text.startswith("/madden"):
balurage() balurage()
elif text.startswith('/potatogift'):
potatogift()
elif text.startswith('/ciaoruozi'): elif text.startswith('/ciaoruozi'):
ciaoruozi() ciaoruozi()
elif text.startswith('/ehoh'): elif text.startswith('/ehoh'):
ehoh() ehoh()
elif text.startswith('/playing'): elif text.startswith('/sbam') or text.startswith('/rekt'):
playing()
elif text.startswith('/saldi'):
saldi()
elif text.startswith('/sbam'):
sbam() sbam()
elif text.startswith('/osu'): elif text.startswith('/osu'):
osucmd() osucmd()
elif text.startswith('/roll'): elif text.startswith('/roll'):
roll() roll()
elif text.startswith('/automah'):
automah()
elif text.startswith('/cv'): elif text.startswith('/cv'):
cv() cv()
elif text.startswith('/online'): elif text.startswith('/online'):
@ -542,7 +534,8 @@ while True:
else: else:
print("@" + username + " bloccato.") print("@" + username + " bloccato.")
except Exception as e: except Exception as e:
telegram.sendmessage(chr(9762) + " *ERRORE CRITICO:\n*" telegram.sendmessage(chr(9762) + " *Errore critico:\n*"
"{0}\n".format(repr(e)), -2141322) "{0}\n\n"
"Secondo me, è colpa dello stagista.".format(repr(e)), -2141322)
print("ERRORE CRITICO:\n" print("ERRORE CRITICO:\n"
"{0}".format(repr(e))) "{0}".format(repr(e)))