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

crash intenzionale best crash

This commit is contained in:
Steffo 2016-02-28 15:00:58 +01:00
parent 9c48e99648
commit 0a3656af08

4
bot.py
View file

@ -714,6 +714,10 @@ while True:
lolfreestring += "*" + staticdata['name'] + "* " + staticdata['title'] + '\n'
print("Completato.")
telegram.sendmessage(lolfreestring, sentin, source)
elif text.startswith('/crash'):
# Crasha il bot. Mi sembra geniale.
if username == 'Steffo':
raise SystemExit("Ho appena fatto crashare tutto apposta. Sono un genio.")
else:
print("@" + username + " bloccato.")
except Exception: