Each plugin gets its own Discord client and token: - DISCORD_TOKEN_JUKEBOX (fallback: DISCORD_TOKEN) → Soundboard - DISCORD_TOKEN_RADIO → Radio discord.ts: factory createClient() instead of singleton plugin.ts: per-plugin context storage via registerPlugin(p, ctx) index.ts: creates/logins/shutdowns multiple bots independently Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| core | ||
| plugins | ||
| types | ||
| index.ts | ||