git clone https://github.com/SkullGaming31/OpenDevBot.git
cd OpenDevBot
npm install
Create a .env file (use .env.example as a guide) and set the required values, at minimum:
TWITCH_CLIENT_ID=your_twitch_client_id
TWITCH_CLIENT_SECRET=your_twitch_client_secret
ENVIRONMENT=dev
ENABLE_CHAT=true
ENABLE_EVENTSUB=false
PORT=8000
npm run start
OpenDevBot provides an OAuth route that will exchange a Twitch authorization code and persist the token in the
database. While the bot is running locally, visit the following URL (replace <CLIENT_ID> and
<REDIRECT_URI> with your app values):
https://id.twitch.tv/oauth2/authorize?response_type=code&client_id=<CLIENT_ID>&redirect_uri=<REDIRECT_URI>&scope=user:read:email+chat:read+chat:edit
By default the project expects the OAuth callback at /auth/twitch/callback (see your configured
redirect URI). After completing the OAuth flow the bot will persist the token into SQLite and, if configured,
automatically join the broadcaster channel.
If you host the web app and want to add the token through the project's UI, use one of the links below depending on the token type:
Authorize (bot) — add bot token
Authorize (user) — add user token
ENABLE_EVENTSUB=false until EventSub is configured.Questions or help? Open an issue on the repository.