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/>
post_id | 24,722,258 | ||||||
---|---|---|---|---|---|---|---|
author | deathwing | ||||||
permlink | twitch-bot-update-v1-0-4 | ||||||
category | utopian-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"]}" | ||||||
created | 2018-01-10 05:29:09 | ||||||
last_update | 2018-01-11 03:25:06 | ||||||
depth | 0 | ||||||
children | 2 | ||||||
net_rshares | 11,214,458,263,381 | ||||||
last_payout | 2018-01-17 05:29:09 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 67.854 SBD | ||||||
curator_payout_value | 29.221 SBD | ||||||
pending_payout_value | 0.000 SBD | ||||||
promoted | 0.000 SBD | ||||||
body_length | 2,333 | ||||||
author_reputation | 34,940,839,343,940 | ||||||
root_title | "Twitch Bot update v1.0.4" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 SBD | ||||||
percent_steem_dollars | 10,000 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
rufans | 0 | 17,926,718,209 | 100% | ||
yuxi | 0 | 8,056,146,379 | 50% | ||
miniature-tiger | 0 | 29,684,042,723 | 50% | ||
ealfskillz | 0 | 4,416,499,365 | 100% | ||
jznsamuel | 0 | 143,900,559,463 | 100% | ||
mkt | 0 | 57,203,994,087 | 100% | ||
steemitph | 0 | 119,587,051,377 | 100% | ||
deathwing | 0 | 2,427,285,343 | 100% | ||
bobdos | 0 | 1,796,263,905 | 4% | ||
utopian-io | 0 | 10,746,487,143,218 | 6.78% | ||
favcau | 0 | 28,570,640,416 | 100% | ||
jaff8 | 0 | 41,973,735,475 | 100% | ||
habercitr | 0 | 7,581,398,380 | 100% | ||
ayevbosa | 0 | 172,095,471 | 28% | ||
steemitstats | 0 | 2,051,693,733 | 5% | ||
travelpamore | 0 | 596,789,688 | 100% | ||
hzmhunter | 0 | 246,517,662 | 100% | ||
adem3455 | 0 | 442,439,506 | 100% | ||
numenk | 0 | 722,791,037 | 100% | ||
kennethz | 0 | 614,457,944 | 100% | ||
miltonforex | 0 | 0 | 100% |
post_id | 24,726,479 |
---|---|
author | wehmoen |
permlink | re-deathwing-twitch-bot-update-v1-0-4-20180110t060115237z |
category | utopian-io |
json_metadata | {} |
created | 2018-01-10 06:01:15 |
last_update | 2020-06-03 05:29:15 |
depth | 1 |
children | 0 |
net_rshares | 127,739,411,065 |
last_payout | 2018-01-17 06:01:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.022 SBD |
curator_payout_value | 0.335 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1 |
author_reputation | 66,748,950,931,416 |
root_title | "Twitch Bot update v1.0.4" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
utopian.tip | 0 | 127,739,411,065 | 18.03% |
### 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**
post_id | 24,945,451 |
---|---|
author | utopian-io |
permlink | re-deathwing-twitch-bot-update-v1-0-4-20180111t061006842z |
category | utopian-io |
json_metadata | "{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}" |
created | 2018-01-11 06:10:06 |
last_update | 2018-01-11 06:10:06 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-01-18 06:10:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,085 |
author_reputation | 152,913,012,544,965 |
root_title | "Twitch Bot update v1.0.4" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |