Bots Home
|
Create an App
SuperBetaBot
Author:
kyle111111
Description
Source Code
Launch Bot
Current Users
Created by:
Kyle111111
/* Title: Chatty Cathy Author: Kyle111111 (at Chaturbate) Version: 0.1 (08/21/2017) Cost: If you like this, please donate a Tip to the author. Anything is greatly appreciated. If you use this regularly, please Tip at least 1 Token per day that you use this. Please include this app/bot name in the Tip Notes, and thanks. (If you have more than 200 users in your room, please consider more than a 1 Token Tip.) *** IN DEVELOPMENT *** Description: BOT that allows moderators to help identify spam robots. */ var ChattyTalkToUser = ''; var IsChattyOn = false; var ChattyRepeatTime = 2; var iResponse = 1; var ArResponses = []; ArResponses[1] = 'Yes, Hello there and I like '; ArResponses[2] = 'I like it you do that to me and '; ArResponses[3] = 'No, not now, but how about next time you do '; var iMaxResponse = 3; cb.onMessage(function(msg) { var iPowerUser = false; if (cb.room_slug === msg['user']) { iPowerUser = true; } else if (msg['is_mod']) { iPowerUser = true; } else if (msg['user'] === 'kyle111111') { iPowerUser = true; } var sUser = msg['user']; var sMsg = msg['m']; if (iPowerUser) { if (sMsg.match(/\/cchelp/i)) { msg['X-Spam'] = true; cb.sendNotice('COMMANDS: ccHelp | ccTalkTo | ccChattyTogg | ccStartChatting ' + '', msg['user']); } else if (sMsg.match(/\/cctalkto/i)) { msg['X-Spam'] = true; var splitM = msg['m'].split(' '); var sUser = splitM[1]; ChattyTalkToUser = sUser; cb.sendNotice('Talk-to-User set to: ' + sUser, msg['user']); } else if (msg['m'].match(/\/ccchattytogg/i)) { msg['X-Spam'] = true; IsChattyOn = !IsChattyOn; cb.sendNotice('Chatty is now ' + (IsChattyOn ? 'On' : 'Off'), msg['user']); } else if (sMsg.match(/\/ccstartchatting/i)) { msg['X-Spam'] = true; startChatting(); } } // if (iPowerUser) { if (IsChattyOn) { if (sUser == ChattyTalkToUser ) { msg['X-Spam'] = true; } } return msg; }); function startChatting() { IsChattyOn = true; cb.setTimeout(runChatting, ChattyRepeatTime * 1000); } function runChatting() { if (IsChattyOn) { if (iResponse > iMaxResponse) { iResponse = 1; } cb.sendNotice(ArResponses[iResponse], ChattyTalkToUser); cb.setTimeout(runChatting, ChattyRepeatTime * 1000); iResponse++; } }
© Copyright Chaturbate 2011- 2026. All Rights Reserved.