Bots Home
|
Create an App
Welcomer
Author:
creator
Description
Source Code
Launch Bot
Current Users
Created by:
Creator
function init() { var user_list = []; cb.onEnter(function(user) { if (user.gender == "m") { if (user.is_mod == true || user.has_tokens == true || user.in_fanclub == true) { cb.chatNotice('Welcome ' + user['user'] + '!'); } } else { cb.sendNotice("Welcome " + user['user'] + "! \n If you like to start a pm, please type '\/pmme <your name> <age> <gender> <location> <message>'\n P.S. I am looking for a skyp buddy. If you are interested, ping me in my username, 'nikzjon'.\n I am interested in friendship, fuckbuddy or online relationships. Enjoy the show. Thank you. ", user['user'], "#FFFFFF", "#0C6A93", "bold"); cb.sendNotice(user['user'] + "/" + user['gender'] + "/" + user['age'], cb.room_slug, "#FFFFFF", "##F78F1F", "bold"); if (!contains(user_list, user['user'])) user_list.push(user['user']); } }); cb.onLeave(function(user) { var index = user_list.indexOf(user); if (index > -1) { user_list.splice(index, 1); } }); cb.onMessage(function(msg) { var ary = msg['m'].split(" "); if (ary[0] == '/pmme') { msg['X-Spam'] = true; cb.sendNotice("Thank you " + ary[1] + ". I'll pm you very shortly. (Your message with your info is not visible publicly.)", msg['user'], "#FFFFFF", "#DC5500", "bold"); ary.shift(); cb.sendNotice(msg['user'] + "( " + ary[0] + "/" + ary[1] + "/" + ary[2] + "/" + ary[3] + "):" + ary[3], cb.room_slug, "#FFFFFF", "#DC5500", "bold"); } return msg; }); } function contains(arr, obj) { for (var i = 0; i < arr.length; i++) if (arr[i] === obj) return true; return false; }; init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.