Setup Guide - TheGuitarleader/MixerLive GitHub Wiki
MixerLive live requires a Mixer and Discord account along with either server ownership or administrative access. The setup can be a little tricky but I’m going to try and make it as easy as I can. So let’s get started!
Installing Node.js
- Head on over to https://nodejs.org/en/download/ and click the installer that best fits for your pc (Windows 32-bit, Windows 64-it, Mac, Linux).
- Open the installer and follow the on-screen instructions.
Creating a Discord Bot
- Go to https://discordapp.com/developers and create a new application
- Enter a name and click create
- Under settings go to "Bot" and click add bot
- Under OAuth2, in scopes check bot
- In bot permissions, make sure view channels, send messages, and embed links are checked
- Copy the link in scopes
- Open the link in a new tab and follow the instructions for adding the bot to your server.
Update the 'config.json'
- If you downloaded the entire repository simply jump to step 6.
- Create a new folder anywhere on your pc.
- Go to releases and download the most current release.
- Put the downloaded release in the folder you created and create a new text file and name it “config.json”
- Open
config.json
in your favorite text editor (Notepad, Notepad++, VS Code, etc.) and to format JSON we need to start by adding some curly brackets '{}'
{
}
- The first value we need to add is for the Discord Bot is the prefix. The prefix is the trigger that wakes the bot for a command. (Not too important)
{
"prefix":"<Charater of your choosing. Usually '!', '$', or '/'>",
}
- The second valve is the bot token. Go to https://discordapp.com/developers and click on the application you want to get the token for. In settings, under bot, click copy to copy the bot token. DO NOT SHARE! The token is what connects the code to the bot. If it's leaked the bot can be hacked and you can have your server deleted. After carefully copying the token add the following to a new line.
{
"prefix":"<Bot prefix for testing bot connectivity>",
"token":"<Token of your Discord bot>",
}
- Now we need to add the channel that MixerLive will push the notifications to. In your Discord server, right-click on the channel and click copy id. Then add the following to a new line.
{
"prefix":"<Bot prefix for testing bot connectivity>",
"token":"<Token of your Discord bot>",
"discordChannelId":"<Id of the channel you want live messages to go to>",
}
- Lastly we need the ID of the Mixer channel so we can request events. Go to 'https://mixer.com/api/v1/channels/?fields=id'. Copy the ID
{"id":"<Copy this>"}
. Then add the following.
{
"prefix":"<Bot prefix for testing bot connectivity>",
"token":"<Token of your Discord bot>",
"discordChannelId":"<Id of the channel you want live messages to go to>",
"mixerChannelId":"<Channel id of your Mixer channel>"
}
Head on over to the Troubleshooting to find out why MixerLive it's working.