Share your osu! stats to everyone on Github by using this gadget! 🎶
This project is inspired by productive-box
For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists
This project requests your osu data from api, and automatically update them into a Github Gist, which u can get the gists pinned in your profile.
- Making it not being disabled automatically by Github.
- Create a new public GitHub Gist (https://gist.github.com/)
- Create a token with the
gist
scope and copy it. (https://github.com/settings/tokens/new)
(You can skip the steps below if you have an exist OAuth Application in osu, and you know what you are doing)
- Login your osu account on osu website (https://osu.ppy.sh/home)
- Click on your avatar (Right Top), and then Settings
Scroll down and look for the OAuth section > New OAuth Application
Input the infomation(just anything for name and callback url, you can update them later) > Register Application
Warning
Do NOT share your Client ID and Client Secret publicly, otherwise it may cause your osu account or api being restricted.
remember the Client ID and Client Secret, we need them later (VERI IMPORTANT).
-
Fork this repo
-
Open the "Actions" tab of your fork and click the "enable" button.
-
There will probably also be a toggle option that asking you to enable the schedule workflow, enable that also.
-
Edit the environment variable in
.github/workflows/osu-box.yml
:- GIST_ID: The ID portion from your gist url:
https://gist.github.com/AiverAiva/
f53231aed6896f053ecbc32ba77b4973
. - OSU_USERNAME: Your osu user name. (example: weikuu, mrekk, xootynator, Ekoro)
- OSU_MODE: The stats of which mode you want to display. (
osu
,fruits
,mania
,taiko
)
- GIST_ID: The ID portion from your gist url:
-
Go to the repo Settings > Secrets
-
Add the following environment secrets:
- GH_TOKEN: The GitHub token generated above.
- CLIENT_ID: The osu! Client ID generated above.
- CLIENT_SECRET: The osu Client Secret generated above.
The workflow updates daily (00:00), if you want to manually update it, click on the workflow dispatch button in Actions > Update osu-stats gist > Run workflow