

It does not connect to the actual stream and therefore it does not count towards the viewer count - usage of this script is not viewer botting. Share the best sounds alerts and emotes on stream lik Twitch and Facebook Gaming. Once you provide an authorization token to your account and a list of channels, the script joins chat rooms for these channels with your account. The script is based on tmi.js, a Node.js package for the Twitch Messaging Interface.

Always be sure to follow 's Terms of Service. Running the script presents you an advantage compared to other regular users, so use it only for channels you actively support and watch. Gain points in various watchtime-related point systemsĮven though the script allows you to join a large number of channels, please, consider using it only for channels you would spend your time in nonetheless.Increase your chances of receiving a community sub gift.

The primary purpose of this script is to increase your account activity in channels' chat-related actions while not actually watching the stream at the given moment, for example: A simple script to join multiple channel chats under a user account. Therefor, these scripts are designed to compliment and enchance a Twitch channel that is currently using AnkhBot, however, many of the scripts can.
Cool mirc twitch bot scripts code#
AnkhBot is highly regarded as a great choice for a free and versatile Twitch bot, yet development on it has stopped, and it's creator, AnkhHeart, refuses to release the source code to other creators. To begin scripting click the little scroll icon on mIRC Once you have this open click 'remote' and this is where you will be writing your scripts. Basic Commands & Scripting Awesome, now that your bot is in your channel we can begin some basic scripting for your bot. In this example we have our "!hello" command from before, as well as one to echo messages and one to simulate rolling a six-sided die:Ĭlient.on('message', (channel, tags, message, self) =>. The main focus of the scripts on this GitHub are for use with a Twitch mIRC bot that works in conjunction with AnkhBot and AnkhBot's point system. Congratulations Your bot is now in your channel and ready to be scripted. Replace the code in index.js with the following, which includes some basic logic for handling commands, which start with "!". We already covered saying hello, so let's check out a few more examples. Now that you can read and respond to messages sent from users in the chat, you can use your creativity to implement the logic for handling all sorts of different commands for whatever you want your bot to do. Run the code with index.js again, and try saying "!hello" in the chat to get a response:īecause I am using the same account for both it may appear as if I'm talking to myself but, one of those messages is automated and one is not. To avoid being rude and testing my bot in someone else's channel, I am going to connect to my own, but if you have any friends who are streaming it can be fun to connect to their streams. I am just going to use my personal account for this. This time you'll have to replace your_username with whatever Twitch account you're using to test this with, preferably one you created for your bot.
