Skip to content

SLOBS Alerts setup

Krammy edited this page Aug 16, 2020 · 4 revisions

SLOBS Alerts setup.

Connecting Trovobot to SLOBS

  1. Open Trovobot folder and go to Services > slobs.
  2. Open slobs.json (right click, edit) & change "active" : true.
  3. Go to your slobs application > settings > remote control > click the QR code > click show more underneath, copy the API Token
  4. Go back to slobs.json & paste the copied token between the "" on the token line.

Creating the Alert folders in Slobs

  1. Go to your main scene and make 4 folders named FOLLOW , SUB , JOINED , SPELL.
  2. Inside each folder put images, gifs, textGDI messages, media sources (sounds/webm's).
  3. Make sure to click the eye icon on the folder only and make it invisible once you have it how you want.
    (don't turn off the eye for the sources inside the folder)

Getting the follower, sub,etc. person's username.

  1. Make a TextGDI Source.
  2. Name it follow-user for example.
  3. In properties tick read from file
  4. Go to Bot folder > labels > select appropriate file.
  5. Customise colours, fonts, etc in properties.

Changing the duration of alerts.

  1. Go to plugins > alert-follow > alert-follow.json
  2. Change the "delay": 10 to how many seconds you want (Recommend 1 second longer than sound).

Adding our alerts to other scenes.

  1. Right click & Copy the folder we created for our "alert".
  2. Right click & Paste the folder (as reference) in to our other scenes.
  3. Repeat 1 & 2 for the other alert folders.

Testing Alerts work

  1. Go to plugins folder > alerts-follow & open alerts-follow.js (right click, edit)
  2. Go down to the line that says
    Chat: false,
    Event: true,
    and switch them around.
    Chat: true,
    Event: false,
  3. Start the bot, wait for it to join chat and type !follow, this should trigger the folder to become visible, wait 10 seconds, turn invisible
  4. Make sure to set
    Chat: false,
    Event: true,
    back to normal & restart the bot after testing.

I don't want my source to be named FOLLOW , SUB , etc. how do I change this?

Inside each plugin > alert-x folder you'll see a json alert-X.json (x = alert type. Follow, sub, etc).
Change the "source" : "FOLLOW" to the source name you want. (make sure you only change what's between the double quotes "")

My alerts folder won't turn on/off

  1. Make sure you didn't put the alerts folders inside another folder. (in slobs)
  2. Make sure you didn't make any additional folders inside the alert folder. (in slobs)