Skip to content

Site Configuration Guide

popcorn9499 edited this page Dec 17, 2018 · 2 revisions

#Site Configuration Guide

To start off please configure the services you would like to use. first run main2.py at least once to generate all the configs

Discord

to enable discord first set the "Enabled" variable to true

please get a bot api token from https://discordapp.com/developers/applications then place the api token into .\config\auth\discord.json under the Token key

Youtube

to enable youtube first set the "Enabled" variable to true

Then make sure the files client_secrets.json and the oauth.json are in the .\config\auth folder.

To get the auth files

Step 1) go to the google developer dashboard https://console.developers.google.com/apis/dashboard

Step 2) go to library and find youtube data api v3 and enable it

Step 3) go to the credientials page and hide credientials.

Step 4) select oauth client id and set the application type to other

Step 5) give it a name

step 6) download the client secrets and copy the client_secrets.json oauth to the folder .\config\auth

Step 7) start the bot and create the oauth.json by following the webpage

IRC

for irc you must enable all the things u want running.

the irc config is in

.\config\auth\irc.json

You must first add a irc server in the servers list.

basically follow this and go on.

        "irc.chat.twitch.tv": { //server key
            "Channel": { //list of channels to connect to
                "#popcorn9499": { //channel (most irc channels have the '#' before the channel name
                    "Enabled": false //this has to be true for the bot to connect to the channel
                }
            },
            "Commands": {}, //this does nothing
            "Enabled": false, //this enables or disables the entire server
            "Nickname": "popcorn9499",
            "Password": "", //this is for the password
            "Port": "6667" //this is semi obvious
        }

please remove the comments if copying and pasting to the irc.json file

comments are (// whatever behind this)

###twitch password generation can be found here twitch password generator

Clone this wiki locally