Twitch Bot update v1.0.4 by deathwing

View this thread on steempeak.com
· @deathwing · (edited)
$97.08
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

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@deathwing/twitch-bot-update-v1-0-4">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id24,722,258
authordeathwing
permlinktwitch-bot-update-v1-0-4
categoryutopian-io
json_metadata"{"type": "development", "repository": {"owner": {"login": "xDeathwing"}, "id": 115228959, "full_name": "xDeathwing/twitchbot", "fork": false, "name": "twitchbot", "html_url": "https://github.com/xDeathwing/twitchbot"}, "pullRequests": [], "format": "markdown", "app": "utopian/1.0.0", "moderator": {"flagged": false, "account": "wehmoen", "reviewed": true, "pending": false}, "platform": "github", "tags": ["utopian-io", "utopian-io"], "community": "utopian", "users": ["deathwing"]}"
created2018-01-10 05:29:09
last_update2018-01-11 03:25:06
depth0
children2
net_rshares11,214,458,263,381
last_payout2018-01-17 05:29:09
cashout_time1969-12-31 23:59:59
total_payout_value67.854 SBD
curator_payout_value29.221 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,333
author_reputation34,940,839,343,940
root_title"Twitch Bot update v1.0.4"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (21)
@wehmoen · (edited)
$1.36
 
👍  
properties (23)
post_id24,726,479
authorwehmoen
permlinkre-deathwing-twitch-bot-update-v1-0-4-20180110t060115237z
categoryutopian-io
json_metadata{}
created2018-01-10 06:01:15
last_update2020-06-03 05:29:15
depth1
children0
net_rshares127,739,411,065
last_payout2018-01-17 06:01:15
cashout_time1969-12-31 23:59:59
total_payout_value1.022 SBD
curator_payout_value0.335 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1
author_reputation66,748,950,931,416
root_title"Twitch Bot update v1.0.4"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@utopian-io ·
### Hey @deathwing I am @utopian-io. I have just upvoted you!
#### Achievements
- You have less than 500 followers. Just gave you a gift to help you succeed!
- Seems like you contribute quite often. AMAZING!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**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**
properties (22)
post_id24,945,451
authorutopian-io
permlinkre-deathwing-twitch-bot-update-v1-0-4-20180111t061006842z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2018-01-11 06:10:06
last_update2018-01-11 06:10:06
depth1
children0
net_rshares0
last_payout2018-01-18 06:10:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,085
author_reputation152,913,012,544,965
root_title"Twitch Bot update v1.0.4"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000