Make sure you have node 18.16.0 or later installed.
git clone https://github.com/mjfwebb/twitch-bot.gitcd client
npm installcd server
npm installCreate 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.
Follow the instructions in the Twitch Developer Documentation to create a new application.
Make sure you update the redirect_uri in config.json to the same URI that you entered in the redirect_uri field of the Twitch app you created. We suggest your redirect_uri is set to http://localhost:3000.
You will need to create an application and generate a client ID and client secret which will need to be entered into the ``twitchsection of theconfig.json` file in the server folder. You can find more information about this in the Twitch configuration guide
Follow the instructions in the Spotify Developer Documentation to create a new application.
Make sure you update the redirect_uri in config.json to the same URI that you entered in the redirect_uri field of the Spotify app you created. We suggest your redirect_uri is set to http://localhost:3000.
You will need to create an application and generate a client ID and client secret which will need to be entered into the ``spotifysection of theconfig.json` file in the server folder. You can find more information about this in the Spotify configuration guide
Once you have done this, go ahead and configure the bot.