Skip to content

mistine/hsrcord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSR Discord profile widget

Allows you to put your HSR stats on a widget on your Discord profile.

layout demo

Note that this is entirely vibeslopped vibecoded, no support will be given.

Usage

  1. Create an app + bot at the Developer Portal; copy the Application ID and Bot Token.
  2. In the portal:
    • OAuth2 → Redirects: add https://discord.com (the bot sends no redirect_uri, so Discord falls back to a registered one; nothing is read from the redirect).
    • Installation: enable User Install so users can add the commands without inviting the bot to a server.
  3. npm install, then cp .env.example .env and set DISCORD_APP_ID + DISCORD_BOT_TOKEN (no client secret needed).
  4. npm start. On first run the bot auto-creates the widget layout on your app and prints your app-add URL (https://discord.com/oauth2/authorize?client_id=<app_id>) — open it to add the app.
  5. (Optional) Upload the custom override art (e.g. Cyrene) so it shows on widgets: npm run setup-assets — see Custom avatar overrides.
  6. /config <uid> — tell the bot your in-game UID. It saves you and pushes immediately.
  7. Authorize only if needed — if that push needs permission, the bot replies with an authorize link. Click it, approve, and close the window that opens; then run /refresh. Authorization is requested lazily — only when a push actually fails for lack of permission. It uses the implicit grant (response_type=token), so a single click finalizes the grant — there's no code to paste and nothing to store.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors