Skip to content

Share your osu! stats to everyone on Github by using this gadget! 🎶

License

Notifications You must be signed in to change notification settings

AiverAiva/osu-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌osu-box🎶

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

Overview

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.

TODO

  • Making it not being disabled automatically by Github.

Prep work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. 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)

  1. Login your osu account on osu website (https://osu.ppy.sh/home)
  2. Click on your avatar (Right Top), and then Settings

Scroll down and look for the OAuth section > New OAuth Application 1

Input the infomation(just anything for name and callback url, you can update them later) > Register Application 2

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). 3

Project setup

  1. Fork this repo

  2. Open the "Actions" tab of your fork and click the "enable" button.

  3. There will probably also be a toggle option that asking you to enable the schedule workflow, enable that also.

  4. 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)
  5. Go to the repo Settings > Secrets

  6. 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.
  7. Pin the newly created Gist

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

About

Share your osu! stats to everyone on Github by using this gadget! 🎶

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published