● Twitch scripts for streamers - Part 1: Latest Followers

Mon Jul 05, 2021 2:02 am
Clan Leader
Top Dog
Nuke Dev / Coder
3017 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 97.5hrs.
Total Played: 343hrs.


  
There is life outside of the game.
Reputation: 7321.7
votes: 7
Well, for those of you that don't know, over the past couple of years, I have written a few twitch scripts that get used in my chat during my streams, and I have also personalized some custom ones for others, but I re-coded a few where you don't need to have your own script, all you have to do is enter some information into a URL, and it is all set for you guys to use on your Stream using Nightbot.


Info:
Yes, this requires Nightbot. I am not going to go over on how to set up night bot, just go to YouTube to find that out. The scripts I am providing are free to use, and just follow the following examples, and you should have no problems using them. The 4 scripts that I am making available are as follows:

  1. Random Chatter - Will grab a random person that is watching your stream and display their name.
  2. The Latest Followers - Will display your latest (1-20) followers, what ever you set.
  3. Magic (8) Ball script - Makes it so you have a 8ball in your chat.
  4. Slaps - This has been the most popular one used, and it was built during a live stream a few years back.


Now, I will go over each one individually and how to implement them into Nightbot, either by from within your chat, or from the Nightbot Dashboard alsong with a few cases of what you can do with them.


Latest Followers:
This script gives you the ability, really, anyone in chat the ability to view your latest followers. This script has the ability to give you the control to show as many new followers as you want to, but, max will be 20.

The URL is going to look like this:
https://www.headshotdomain.net/twitch_scripts/latest_followers.php?num=5&uid=************&m=1
With message turned on:  The latest 5 followers are sarsv2coin, drilxbow, enigmaticwoof, Bones590, CHEESUS_KREIST.
With message turned off:  sarsv2coin, drilxbow, enigmaticwoof, Bones590, CHEESUS_KREIST.

?num=10  This here would be the number of followers to be shown. In my example, I have the latest 5 followers shown. This can be any number between 1 - 20.

&uid=********* - Replace the ********* with your twitch ID. It's a numerical ID, so don't try your username.
If you don't know it, go to this link and follow the instructions:
Please login to see this link
Get registered or Log in


&m=1 - This is if you don't want to display the message, just set this to 0. 1 is show, 0 is don't show.

Now, how to implement:
From within your chat of your stream. (of course put in your own UID and change the count and message settings to your liking.).

Code: [ Select all ]

!commands add !last5 $(customapi https://www.headshotdomain.net/twitch_scripts/latest_followers.php?num=5&uid=************&m=1)

 
With a different start to the message:

Code: [ Select all ]

!commands add !last5 The most recent mofo's are $(customapi https://www.headshotdomain.net/twitch_scripts/latest_followers.php?num=5&uid=************#&m=0)

 
The message that would use in the adding a custom command is as follows:

Code: [ Select all ]

The most recent mofo's are $(customapi https://www.headshotdomain.net/twitch_scripts/latest_followers.php?num=5&uid=************&m=0)

or

Code: [ Select all ]

$(customapi https://www.headshotdomain.net/twitch_scripts/latest_followers.php?num=5&uid=************&m=1)

 
How to use in your stream:
This is very simple, all you need to do is type !last5. Grants, that is only if you use my example because of course, you can change the name of the command, (Must start with a !).

Well, that is for part 1, I will be doing this in 4 different threads, so they are not a mile long. Also, I want to make it better for searching, so breaking it up like this is the best option.
If you have any questions, feel free to ask.


(Special Request): If you do decide to use these scripts on your own stream, please consider either donating a little to our site for hosting and making these for you, or at lease, put some sort of link back either to my twitch or my site in your cards or somewhere on your stream.


Expand
Forums ©