The following details each of the settings files that need to be filled out for each handler. An example is provided for each file.
All settings files are found in the settings folder.
This script uses text files to improve the average user experience.
Location: settings/chat/channel.txt
Specify the twitch channel to connect for chatting.
kruiser8
Location: settings/chat/code.txt
NOTE: Leave this file blank if you want Kruiz Control to send messages as your main Twitch account. That is, only use this if you want to send messages as a separate bot account.
DO NOT COPY YOUR TWITCH CODE.TXT VALUE HERE
Follow the instructions in the Twitch Code section below. At step 5, login with the desired account. Copy the generated code into this file.
exampleoauth4kruizcontrol12345
Reminder:
- channel.txt specifies the channel to connect to.
- code.txt specifies the user to send messages as.
Location: settings/mqtt/websocket.txt
Specify the IP (or hostname) + port to use for the MQTT websocket.
ws://localhost:8883
Location: settings/mqtt/username.txt
NOTE: Leave this file blank if your broker doesn't require authentication.
Specify the username required by your broker, if any.
kcmqttuser
Location: settings/mqtt/password.txt
NOTE: Leave this file blank if your broker doesn't require authentication.
Specify the password required by your broker, if any
p@55w0rd
These settings can be found through Tools > WebSockets Server Settings.
Location: settings/obs/address.txt
Specify the IP + port to use for the OBS websocket.
ws://127.0.0.1:4455
Location: settings/obs/password.txt
Specify the password to use when connecting to the websocket.
my0b5p455w0rd
Follow the below steps to enable the SLOBS API for Kruiz Control.
- Open SLOBS
- Click the settings gear in the bottom left
- Open the
Remote Controltab - Click the QR Code so that it shows.
- Click the
Show detailstext/link that appears. - Copy the API Token value into the token.txt file (referenced below).
- Close SLOBS.
- Run SLOBS as administrator to enable the SLOBS Remote Control API.
Location: settings/slobs/token.txt
eyJAFOI3qoi4ut6345ogno5iuyt890
To capture alerts through StreamElements, you'll need a JWT token. To get your JWT token,
- Go to your account settings
- Click the Show secrets toggle on the right
- Copy the JWT Token value that appears
Location: settings/streamelements/jwtToken.txt
eyJAFOI3qoi4ut6345ogno5iuyt89058gn589tyjh589h98h509ASUDF98Uuf98adshf9asfha89hga9hg9H8HA98HG98DAH98ADH8HG98ha989a9H9HG98DHh9DSHG89shg98h89DH98hh8H98gsdhg9D8SHD89GH9dshg89DSHG98HFSFNLJKFH98HNSDINVC98DSHGFw08hwewf
To capture alerts through Streamlabs, you'll need your Socket API Token. To get your token,
- Go to https://streamlabs.com/dashboard#/settings/api-settings
- Click the API Tokens tab
- Copy the Your Socket API Token value
Location: settings/streamlabs/socketAPIToken.txt
eyJhaoiuh798a99h7HBN879DHF98A789aigfba8790gfh987Fb78987BgUYF4SD56gI9Uh98786rf7tVBg97Gf56dxCilbh8OYf6r5SDX6cuyoIB97768FD76d546SD6iGVBUIb9i980YH897676f8FiUB9OIu8g78D6d5BiIU
To capture Twitch events, you'll need a Client Id and Client Secret and a generated auth token for your Twitch user.
To capture Twitch events, you'll need a Client Id and Client Secret. To create your own,
- Go to https://dev.twitch.tv/login and login with your Twitch account.
- Navigate to https://dev.twitch.tv/console.
- Once logged in, on the left sidebar click
Applications. - Click the
+ Register Your Applicationbutton and enter the following details:- Name:
YOUR_USERNAME Kruiz Control(Any name works, as long as it is unique) - OAuth Redirect URLs:
http://localhost - Category:
Chat Bot
- Name:
- Click the
Createbutton at the bottom. - Click the
Managebutton on the right hand side for the application you created. - Copy the Client ID value and put it in the
settings/twitch/clientId.txtfile. - Click the
New Secretbutton, confirm the prompt, and copy and paste the value into thesettings/twitch/clientSecret.txtfile.
Some APIs and events require a user authenticated auth code. To generate one of these, first follow the Client ID and Secret instructions to update the settings/twitch/clientId.txt and settings/twitch/clientSecret.txt files. Then follow the below steps:
- Add the below to your Kruiz Control
triggers.txtfile to add an authentication link to your OBS or SLOBS log file.### Twitch Authenticate ### OnInit Twitch Authenticate Error {auth_url} - Reset Kruiz Control (refresh the browser source) to generate the link .
- Open your OBS or SLOBS log file to find the URL.
- For OBS, go to
Help>Log Files>View Current Log. - For SLOBS, open the settings cog (bottom left) and then go to
Get Supportand click theShow Cache Directoryoption underCache Directory. Open thenode-obsfolder and then thelogsfolder. Open the most recently modified file.
- For OBS, go to
- Copy the link at the bottom of the log file, and open it in a browser.
- The link will start with
https://id.twitch.tv/oauth2/authorize
- The link will start with
- Login to your Twitch account. This provides the ability to control your stream via the created https://dev.twitch.tv application.
- After login, you'll be redirected to a link that looks like the below.
http://localhost/?code=YOUR_CODE_HERE&scope=bits%3Aread... - Copy the
YOUR_CODE_HEREvalue and put that into yoursettings/twitch/code.txtfile. - Once you have generated a code, you can remove the
### Twitch Authenticate ###event from yourtriggers.txtfile.
Location: settings/twitch/clientId.txt
Specify the Twitch Client ID to use when making API calls.
wasdfe23r9yujasbnvo9qhfiuqa328
Location: settings/twitch/clientSecret.txt
Specify the Twitch Client Secret to use when making API calls.
h30984thfa9uegh90awiejhtgfqgq3
Location: settings/twitch/code.txt
Specify the Twitch auth code generated after logging in to your Twitch account.
098wh4ijbngse7w9r87yqu3gbq398f
Location: settings/twitch/user.txt
Specify the Twitch channel that Kruiz Control will react to and control through triggers and actions.
kruiser8
Use the below settings to toggle how Variables are configured in Kruiz Control.
Location: settings/variable/autoload.txt
Format: <on/off>
Specify whether or not Kruiz Control should automatically load all variables (session and global) without having to use Variable Load or Variable Global Load.
(Default) If set to off, variables must be loaded before they can be used.
If set to on, all variables are usable as soon as they are set or Kruiz Control initializes.
off
To connect to Voicemod, you'll need an API Key. To get your API Key,
- Fill out Voicemod's form to request a key.
- After submitting the form, check your email inbox for an email from control.api.devs@voicemod.net with your
clientKey. - Copy the
clientKeyvalue. It should look something likeabc-defh12345. - Paste the
clientKeyinto thesettings/voicemod/apiKey.txtfile.
Location: settings/voicemod/address.txt
ws://localhost:59129/v1
Location: settings/voicemod/apiKey.txt
abc-defg12345