How reussio/discord-rich-presence works
The application reads JSON settings, validates them, builds a Discord Rich Presence activity, and sets it through Discord's local RPC connection. The README documents customization for text, images, buttons, timestamps, party size, visibility, and status updates; those feature branches are represented within the activity builder. Source excerpts show the main control flow, but do not establish separate runtime components for the documented features.
Main entry points: index.js Application entry · config.json JSON settings · validateConfig.js Config validation · createPresence.js Activity builder
Components 6
Configuration
- JSON settings
config.json - Config validation
validateConfig.js
Presence construction
- Activity builder
createPresence.js
Discord connection
- Application entry
index.js
Other components
- Operator
- Discord RPC
Connections 5
- Operator → JSON settings: edits settings
README.md - Application entry → JSON settings: reads JSON
index.js - Application entry → Config validation: validates config
index.js - Application entry → Activity builder: builds activity
index.js - Application entry → Discord RPC: sets activity
index.js