From a177e0164083947039a0628cc662aaa2312a1925 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 20 Dec 2015 18:40:54 +0100 Subject: [PATCH] credo sia cambiato qualcosa? boh --- bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 07c36fed..fbd595bb 100644 --- a/bot.py +++ b/bot.py @@ -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])