An noob nonebot v1 based osu bot write in Python.
Clone or Download as zip, then put the whole folder to /path/to/plugins/
.
Then, you can use these API to run your own bot.
await Auth_data.get_auth_code(client_id, client_secret)
This one must be called at each call of the bot. It returns an temp auth key from ppy.
If you don't have an oauth app, you can go to Account settings to request your own app.
!!!KEEP YOUR APP SECRET IN SECURE AND DON'T LET ANY OTHER ONE KNOW IT!!!
client_id
: Your oauth app's id
client_secret
: Your oauth app's secret
await osu_sbot.binding(authkey, qqid, uid)
Bind the osu user with his/her qq account.
authkey: will be returned by osu_sbot.Auth_data.get_auth_code
.
qqid: The user's qq account id.
uid: The user's osu uid.
get_recent(authkey, uid, limit=9, mode)
get_bp(authkey, uid, limit, mode)
...
under GPL V3.