hastim.blogg.se

Mirc twitch bot commands
Mirc twitch bot commands







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) =>. 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. / THIS SCRIPT REQUIRES mIRC VERSION 7.34 OR GREATER To join a channel, type /twitch To change your default nickname, type /twitchnick To change a password for a nickname, type /twitchpass pass (password is optional if left blank it will be deleted) Right click inside the channel window for moderation commands.

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.

mirc twitch bot commands

Consequently, you need to add the following information to Twitch commands: Command name: Let’s say that you want to create a command that shows your Instagram account. The commands created on this tool are executed via a previously set name and the key. 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. Step 3: Set the Command Name and Command’s Response.









Mirc twitch bot commands