Twitch Bot update v1.0.4
A new update has been released!
Current features
Reply back to users when they issue a certain command.
Mod/Unmod players
Have custom commands that do things that you want when used.
Moderate your channel.
Host/unhost a channel
Announce subscribers
Announce bits/cheers
Toggle r9k on and off
Announce all resubscribers who subscribed for more than 2 months
Announce people who hosted you on chat with the amount of viewers.
Ban/unban users.
Reply back when users have sent the bot a message, do stuff. (later on, whisper system)
Actually notify users that have been timed out with how long they have been timed out for included.
What's new with the new version
You can now change the chat color of the bot to various colors such as RGBP (Red, Green, Blue and Pink, don't know why)
Added a new command to clear all the messages written in the chat. (!clear) and bot will notify you about it as well.
//Change Bot's chat color to Red
client.on('chat', function(channel, user, message, self) {
if(user.username === 'channelowner' && message === "!color red") {
client.color("Red"); }
});
//Change Bot's chat color to Green
client.on('chat', function(channel, user, message, self) {
if(user.username === 'channelowner' && message === "!color blue") {
client.color("Blue"); }
});
//Change Bot's chat color to Blue
client.on('chat', function(channel, user, message, self) {
if(user.username === 'channelowner' && message === "!color blue") {
client.color("Blue"); }
});
//Change Bot's chat color to Pink
client.on('chat', function(channel, user, message, self) {
if(user.username === 'channelowner' && message === "!color pink") {
client.color("HotPink"); }
});
//Clear all chat messages
client.on('chat', function(channel, user, message, self) {
if(user.username === 'channelowner' && message === "!clear") {
client.clear('channel'); }
});
client.on('clearchat', function(channel) {
client.say('channel', "Chat has been cleared.");
});
Let me know if you have any questions!
https://github.com/xDeathwing/twitchbot
https://github.com/xDeathwing/twitchbot/commit/e04edc8c42550f95cb6f0c0680c376f23d35b1f5
Posted on Utopian.io - Rewarding Open Source Contributors
Hey @deathwing I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x