Bots Home
|
Create an App
GVCBot
Author:
dbell19
Description
Source Code
Launch Bot
Current Users
Created by:
Dbell19
/* App: GVC Chat Bot By DBell19 https://javascriptobfuscator.com/Javascript-Obfuscator.aspx Version 1 */ //Friends and members listStyleType var gvc_kpMembers = {}; var gvc_mMembers = {}; var gvc_cMembers = {}; var gvc_fMembers = {}; //NOTICE AD var gvc_noticeArray = new Array(); //TIP Array var gvc_imena = new Array(); var gvc_tipovi = new Array(); //Leaderboard var gvc_tipperArray = new Array; var gvc_leaderArray = [['',0],['',0],['',0]]; var gvc_leaderboardSpam = 0; var gvc_numTippers = 0; // Limit goal description as we add some text cb.settings_choices = [ { name: 'ChatMembers', type: 'str', minLength: 1, maxLength: 10000, defaultValue:'dbell19,lamar74,mr_likes_it', required: false, label:"GVC members comma (,) sep" }, { name: 'my_text', type: 'str', minLength: 1, maxLength: 10000, defaultValue:'♥[ :gvctext ]♥', required: false, label:"GVC Members Text" }, { name: 'mystBG', type: 'str', minLength: 1, maxLength: 10000, defaultValue:'#00D7C4', required: false, label:"GVC Members Background" }, { name: 'mystFC', type: 'str', minLength: 1, maxLength: 10000, defaultValue:'#6F6F6F', required: false, label:"GVC Members Foreground" }, { name: 'Friends_Members', type: 'str', minLength: 1, maxLength: 10000, defaultValue:'', required: false, label:"Friends List, Non members but people you like i.e. good tippers" }, { name: 'Friends_text', type: 'str', minLength: 1, maxLength: 10000, defaultValue:'[Friend]', required: false, label:"Friend Text" }, { name: 'includeSongMenu', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'song_color', type: 'str', minLength: 1, maxLength: 300, defaultValue:'#FFFFFF', required: false, label:"Song Menu Background Color" }, { name: 'song_fcolor', type: 'str', minLength: 1, maxLength: 300, defaultValue:'#BB00B2', required: false, label:"Song Menu Font Color" }, { name: 'song_Scroll', type: 'str', minLength: 1, maxLength: 300, defaultValue:':sparklpink You can type !songs to see a list of songs, tip 134 tokens with your request', required: false, label:"Song Scroll" }, { name: 'song_tip', type: 'int', minValue: 1, defaultValue:134, required: false, label:"Song Tip Amount"}, { name: 'noticeSongMenuTime', label: 'Number of Minutes for Song Scroll', type: 'int', minValue: 1, maxValue: 40, required: false, defaultValue: 5}, { name: 'song_menu1', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 1" }, { name: 'song_menu2', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 2" }, { name: 'song_menu3', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 3" }, { name: 'song_menu4', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 4" }, { name: 'song_menu5', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 5" }, { name: 'song_menu6', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 6" }, { name: 'song_menu7', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 7" }, { name: 'song_menu8', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 8" }, { name: 'song_menu9', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 9" }, { name: 'song_menu10', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 10" }, { name: 'song_menu11', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 11" }, { name: 'song_menu12', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 12" }, { name: 'song_menu13', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 13" }, { name: 'song_menu14', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 14" }, { name: 'song_menu15', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 15" }, { name: 'song_menu16', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 16" }, { name: 'song_menu17', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 17" }, { name: 'song_menu18', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 18" }, { name: 'song_menu19', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 19" }, { name: 'song_menu20', type: 'str', minLength: 1, maxLength: 300, defaultValue:'', required: false, label:"Song 20" }, ]; cb.onTip( function (tip) { var gvcCurrentTip = parseInt(tip['amount']); var gvcTipper = tip['from_user']; var gvctMsg = tip['message']; var gvcsongTipAmt = parseInt(cb.settings.song_tip); var gvcsongSelection =""; var gvctipFColor = cb.settings.song_fcolor; var gvctipBColor = cb.settings.song_color; if(gvcCurrentTip == gvcsongTipAmt) { if(!isNaN(gvctMsg)) { gvcsongSelection = cb.settings["song_menu"+gvctMsg]; } else { gvcsongSelection = ""; } if(gvcsongSelection !="") { cb.sendNotice(gvcTipper + ' has tipped for song: ' + gvcsongSelection, "",gvctipBColor,gvctipFColor); } } /* if(isincludeSongMenu()) { TipMenuCheckTip(tip); } */ } ); cb.onMessage(function (msg) { var u = msg['user']; var message=msg['m']; var messagesplit = msg['m']['split'](' '); //Added check to not conflict with other bots if (message[0]['charAt'](0) != '/') { if(message=="!songs") { SendSongList(u); } if( isChatMembers(u) ) { msg['m'] = cb.settings.my_text + " " + msg['m']; msg['background'] = cb.settings.mystBG; msg['c'] = cb.settings.mystFC; } else if (isFriendMember(u) ) { msg['m'] = cb.settings.Friends_text + " " + msg['m']; } else{ msg['m'] = msg['m']; } } return msg; }); cb.onEnter(function(user) { //var message = cb.settings.joinnotice_text1.toLowerCase().replace('[u]',user['user']); //cb.sendNotice(message, user['user']); }); /* MEMBERS LIST CODE * */ function isChatMembers(username) { return (username in gvc_kpMembers); } function isFriendMember(username) { return (username in gvc_fMembers); } function MemberSettings() { if (cb.settings.ChatMembers) { var gvc_kpMembersettings = cb.settings.ChatMembers.split(','); for (var ii = 0; ii < gvc_kpMembersettings.length; ii++) { var clean = gvc_kpMembersettings[ii].toLowerCase().replace(/ /g,""); gvc_kpMembers[clean] = {'u': 1}; } } if (cb.settings.Friends_Members) { var gvc_fMembersettings = cb.settings.Friends_Members.split(','); for (var ii = 0; ii < gvc_fMembersettings.length; ii++) { var clean = gvc_fMembersettings[ii].toLowerCase().replace(/ /g,""); gvc_fMembers[clean] = {'u': 1}; } } } /* * Song MENU */ function isincludeSongMenu() { return (cb.settings.includeSongMenu == 'Yes'); } function SongMenuNoticeadRun() { SongMenuNoticead(); } function SongMenuNoticead() { var tipScroll = cb.settings.song_Scroll; var gvctipFColor = cb.settings.song_fcolor; var gvctipBColor = cb.settings.song_color; var tipTimer = cb.settings.noticeSongMenuTime; cb.sendNotice(tipScroll,"",gvctipBColor,gvctipFColor,"bold") cb.setTimeout(SongMenuNoticeadRun, (tipTimer * 60000)); } function SendSongList(user) { var songListHeader = "--=HERE IS LILY'S SONG LIST==- \n"; var gvctipFColor = cb.settings.song_fcolor; var gvctipBColor = cb.settings.song_color; var data = songListHeader; for(var i=1;i<=20;i++) { t_item=cb.settings["song_menu"+i]; if(t_item !='') { data += i + ') ' + t_item + '\n'; } } data += 'When tipping make sure to include the song number. If you want song #1 enter 1 in the tip note'; cb.sendNotice(data, user,gvctipBColor,gvctipFColor); } /* * INITIALIZE CODE */ function init() { /* cb.chatNotice("*************************************************"); cb.chatNotice("**************Good Vibes Couple Bot****************"); cb.chatNotice("***********************By************************"); cb.chatNotice("*********************DBell19**********************"); cb.chatNotice("********************Version 1********************"); cb.chatNotice("*************************************************"); */ MemberSettings(); if(isincludeSongMenu()) { SongMenuNoticeadRun(); } } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.