No description
- Lua 59.4%
- TypeScript 40.6%
show viewer count only when viewers are present See merge request seth/stream-presence!2 |
||
|---|---|---|
| src | ||
| .env.example | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| biome.json | ||
| bun.lock | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Stream Presence
A Discord Rich Presence app that displays your streaming activity with live preview images.
Setup
-
Install dependencies:
bun install -
Copy the example environment file:
cp .env.example .env -
Edit
.envwith your settings:DISCORD_CLIENT_ID=1401179007344443434 STREAM_API_KEY=your-stream-key STREAM_BASE_URL=https://stream.atums.world PRESENCE_UPDATE_INTERVAL=15000 DEFAULT_ACTIVITY_TYPE=1 DEFAULT_ACTIVITY_NAME=
Usage
Run the application:
bun start
Configuration
Activity Types
1- Playing2- Listening to3- Watching4- Competing In
Environment Variables
DISCORD_CLIENT_ID- Your Discord application client IDSTREAM_API_KEY- Your stream API keySTREAM_BASE_URL- Base URL for the streaming servicePRESENCE_UPDATE_INTERVAL- How often to update presence (milliseconds)DEFAULT_ACTIVITY_TYPE- Default activity type (1-4)DEFAULT_ACTIVITY_NAME- Default activity name
Auto Mode
Set both DEFAULT_ACTIVITY_TYPE and DEFAULT_ACTIVITY_NAME to skip prompts and run automatically.
Development
bun run dev- Run with hot reloadbun run lint- Check code stylebun run lint:fix- Fix code style issues