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

Rinominato /osunow in /osu tanto è l'unico che c'è. E tolta una roba di debug.

This commit is contained in:
Steffo 2015-12-21 16:57:46 +01:00
parent d011b77c79
commit 855fcaf8ac

6
bot.py
View file

@ -127,8 +127,8 @@ while True:
telegram.senddocument(wololo[int(cmd[1]) - 1], sby) telegram.senddocument(wololo[int(cmd[1]) - 1], sby)
else: else:
telegram.senddocument('BQADAgADZwIAAh8GgAF3etjqkzFDxAI', sby) telegram.senddocument('BQADAgADZwIAAh8GgAF3etjqkzFDxAI', sby)
elif cmd[0].startswith('/osunow'): elif cmd[0].startswith('/osu'):
print(unm + ": /osunow") print(unm + ": /osu")
if len(cmd) >= 2: if len(cmd) >= 2:
cmd = msg['text'].split(' ', 2) cmd = msg['text'].split(' ', 2)
if len(cmd) >= 3: if len(cmd) >= 3:
@ -196,8 +196,6 @@ while True:
"*Awesome*: " + r['countkatu'] + "\n" + "*Awesome*: " + r['countkatu'] + "\n" +
"*Good*: " + r['countgeki'] + "\n" + "*Good*: " + r['countgeki'] + "\n" +
"*Miss*: " + r['countmiss'], sby) "*Miss*: " + r['countmiss'], sby)
else:
print("nope")
elif cmd[0].startswith('/roll'): elif cmd[0].startswith('/roll'):
if len(cmd) >= 2: if len(cmd) >= 2:
m = int(cmd[1]) m = int(cmd[1])