Bots Home
|
Create an App
ForIvy
Author:
cryptojunkie
Description
Source Code
Launch Bot
Current Users
Created by:
Cryptojunkie
cb.settings_choices = [ {name:'emoticons', type:'str', minLength:1, maxLength:500, defaultValue:":ivy-goy-final", label: "Emoticons to Send, separated by a comma (ex :emoa,:asdasd,:emob"}, {name:'welcomeTok', type:'str', minLength:1, maxLength:500, defaultValue:"welcome tippers", label: "Welcome message for the toked out"}, {name:'welcomeTokless', type:'str', minLength:1, maxLength:500, defaultValue:"welcome non-tippers", label: "Welcome message for the tokenless"}, {name:'tokenOnly', type:'choice', choice1:'yes', choice2:'no', defaultValue: 'no', label: "Token users only?"}, {name:'someSpec', type:'choice', choice1:'yes', choice2:'no', defaultValue: 'no', label: "Something special?"} ]; var rainbowUsers = []; cb.onEnter(function(user) { if (user['has_tokens']) { cb.sendNotice(cb.settings['welcomeTok'], user['user']); } else { cb.sendNotice(cb.settings['welcomeTokless'], user['user']); } }); cb.onMessage(function (m) { if ((m['user'] == cb.room_slug || m['is_mod']) && m['m'].substr(0,5) == '/tell') { cb.sendNotice(m['m'].substr(6), cb.room_slug); } if (cb.settings['tokenOnly'] == 'yes' && !m['has_tokens'] && !m['is_mod'] && m['user'] != cb.room_slug) { cb.sendNotice("The hostess has requested that only users with tokens can speak freely, and no, she doesn't care if you live in america", m['user']); } if ((m['user'] == cb.room_slug || m['is_mod']) && m['m'].substr(0,8) == '/rainbow') { var userToRainbow = m['m'].substr(9); if (cbjs.arrayContains(rainbowUsers, userToRainbow)) { cb.sendNotice("Removing " + userToRainbow + " from the list of rainbow users", m['user']); cbjs.arrayRemove(rainbowUsers, userToRainbow); } else { cb.sendNotice("Adding " + userToRainbow + " to list of rainbow users", m['user']); rainbowUsers.push(userToRainbow); } } if (cbjs.arrayContains(rainbowUsers, m['user'])) { var r = Math.floor((Math.random() * 255) + 0); var g = Math.floor((Math.random() * 255) + 0); var b = Math.floor((Math.random() * 255) + 0); m['c'] = '#' + r.toString(16) + g.toString(16) + b.toString(16); } }); var somethingSpecial = ["Hey, you're beautiful.", "Sexy as always.", "Never forget how amazing you are.", "This is pretty corny, but who cares.", "Damn son, where'd you find that ass?"]; function sendEmoticon() { // Get emoticon to send var emoArr = cb.settings['emoticons'].split(","); var emoticon = emoArr[Math.floor(Math.random() * emoArr.length + 1) - 1]; // Send it on through to the other side var time = Math.floor(Math.random() * (300000 - 180000) + 180000); cb.sendNotice(emoticon); cb.setTimeout(sendEmoticon, time); } function addRainbow(user) { } function sendSpecialMessage() { var time = Math.floor(Math.random() * (120000 - 60000) + 60000); var ss = somethingSpecial[Math.floor(Math.random() * somethingSpecial.length + 1) - 1]; cb.sendNotice('Something Special\n' + ss, cb.room_slug, '#C8A2C8', "", "bold"); cb.setTimeout(sendSpecialMessage, time); } cb.setTimeout(sendEmoticon, 10000); if (cb.settings['someSpec'] == 'yes') { cb.setTimeout(sendSpecialMessage, 5000); }
© Copyright Chaturbate 2011- 2026. All Rights Reserved.