Make sure you have node 18.16.0 or later installed.
git clone https://github.com/mjfwebb/twitch-bot.git
cd client
npm install
cd server
npm install
Create a config.json
and tokens.json
in the server folder using the examples files.
Navigate to the server folder and copy the example files to create your configuration files:
cd server
cp ./example.tokens.json ./tokens.json
cp ./example.config.json ./config.json
Note that if you want to change the port the server runs on, you can do so in the config.json
file. You must also change the value for VITE_BOT_SERVER in .env.development in the client folder.
You will need a Twitch developer account to create a Twitch application.
Follow the instructions in the Twitch Developer Documentation to create a new application.
You will need to create an application and generate a client ID and secret which will need to be added to twitch section of the config.json
file in the server folder.
Once you have done this, go ahead and configure the bot.