mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
credo sia cambiato qualcosa? boh
This commit is contained in:
parent
d3b30b7ada
commit
a177e01640
1 changed files with 4 additions and 2 deletions
6
bot.py
6
bot.py
|
@ -179,8 +179,8 @@ while True:
|
||||||
"*Miss*: " + r['countmiss'], sby)
|
"*Miss*: " + r['countmiss'], sby)
|
||||||
else:
|
else:
|
||||||
# E' un po' una scorciatoia eh, peeerò...
|
# E' un po' una scorciatoia eh, peeerò...
|
||||||
if str(unm).lower() in osunames:
|
if unm[1:].lower() in osunames:
|
||||||
r = osu.getuserrecent(osunames[str(unm).lower()])
|
r = osu.getuserrecent(osunames[unm[1:].lower()], 0)
|
||||||
telegram.sendmessage("*Osu!*\n" +
|
telegram.sendmessage("*Osu!*\n" +
|
||||||
"[Beatmap " + r['beatmap_id'] + "](" + 'https://osu.ppy.sh/b/' + r[
|
"[Beatmap " + r['beatmap_id'] + "](" + 'https://osu.ppy.sh/b/' + r[
|
||||||
'beatmap_id'] +
|
'beatmap_id'] +
|
||||||
|
@ -192,6 +192,8 @@ 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])
|
||||||
|
|
Loading…
Reference in a new issue