Get a copy of the .env file, then install dependencies:
bun install
And run:
bun run src/index.ts
This will:
- Start the bot and create the slash commands in the Discord
- Start an
express
server that will listen for Twitch webhook events indicating that one of the subscribed streamer's streams are starting.
In production, this app uses PM2 to start the daemon. Start it with:
pm2 start pm2.config.cjs --watch
Allows users to subscribe to streamers, list active subscriptions, and unsubscribe from streamers. Subscriptions notify a channel in the LGT Discord that a stream has started.