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

credo sia cambiato qualcosa? boh

This commit is contained in:
Steffo 2015-12-20 18:40:54 +01:00
parent d3b30b7ada
commit a177e01640

6
bot.py
View file

@ -179,8 +179,8 @@ while True:
"*Miss*: " + r['countmiss'], sby)
else:
# E' un po' una scorciatoia eh, peeerò...
if str(unm).lower() in osunames:
r = osu.getuserrecent(osunames[str(unm).lower()])
if unm[1:].lower() in osunames:
r = osu.getuserrecent(osunames[unm[1:].lower()], 0)
telegram.sendmessage("*Osu!*\n" +
"[Beatmap " + r['beatmap_id'] + "](" + 'https://osu.ppy.sh/b/' + r[
'beatmap_id'] +
@ -192,6 +192,8 @@ while True:
"*Awesome*: " + r['countkatu'] + "\n" +
"*Good*: " + r['countgeki'] + "\n" +
"*Miss*: " + r['countmiss'], sby)
else:
print("nope")
elif cmd[0].startswith('/roll'):
if len(cmd) >= 2:
m = int(cmd[1])