mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Bugfix
This commit is contained in:
parent
ea8f8cd9d5
commit
35f9daf662
2 changed files with 3 additions and 3 deletions
4
bot.py
4
bot.py
|
@ -64,8 +64,8 @@ while True:
|
|||
telegram.senddocument('BQADAgADTQIAAh8GgAGj0jKIrpTgvQI', sby)
|
||||
elif cmd[0].startswith('/osunow'):
|
||||
print(str(sby) + ": /osunow ")
|
||||
if cmd[1] is not None:
|
||||
if cmd[2] is not None:
|
||||
if len(cmd) >= 2:
|
||||
if len(cmd) >= 3:
|
||||
r = osu.getuserrecent(cmd[1], cmd[2])
|
||||
else:
|
||||
r = osu.getuserrecent(cmd[1])
|
||||
|
|
2
osu.py
2
osu.py
|
@ -72,4 +72,4 @@ def getuserrecent(user, mode=0):
|
|||
'm': mode,
|
||||
}
|
||||
r = requests.get("https://osu.ppy.sh/api/get_user_recent", params=parametri).json()
|
||||
return r[0]
|
||||
return r
|
||||
|
|
Loading…
Reference in a new issue