Bots Home
|
Create an App
KkClubBot
Author:
hethro1
Description
Source Code
Launch Bot
Current Users
Created by:
Hethro1
var ClubMember = new Array; var CMName=0; var CMGif=1; var CMNickname=2; var CMSuperPowers=3; var cs = JSON.parse(JSON.stringify(cb.settings)); cb.settings_choices = [ //============ClubUser============== {name:'ClubUserActive', type:'choice', choice1:'On', choice2:'Off', label:'________________Club Members_____', defaultValue:'on'}, {name:'ClubMembers', type:'str', label:'Club Members(Member1:gif[space]:gif,nickname;[simi-comma]Member2, :gif,)',defaultValue: 'Member,:gif :gif,nickname;'} ] function BuildClubMembers(){ var m=String(cs.ClubMembers).split(';'); for(i=0;i<=m.length;i++){ var mg=String(m).split(','); ClubMember[i]= new Array; ClubMember[i][CMName]=mg[0]; ClubMember[i][CMGif]=mg[1]; ClubMember[i][CMNickname]=mg[2]; } } cb.onMessage(function (msg){ var message = msg['m'].split(' ');// 0 is comand, 1 variable for comand if(message[0].charAt(0) == '?') { switch(message[0]) { //========================== // case '?help':{if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){HelpMsgBroad(msg['user'])} // HelpMsg(msg['user']);msg['X-Spam']=true;break;} // case '?rewards':{DisplayRewardQ(msg['user']);msg['X-Spam']=true;break;} // case '?unclam':{DisplayRewardQ(msg['user'],true);msg['X-Spam']=true;break;} // case '?clam':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){ // if(parseInt(message[1])<=RewardQ.length-1){RewardQ[message[1]]='*'+RewardQ[message[1]]+'*';MsgUser('cmd=reward clamed LOOK WHAT I CAN DO im still helping<Hethro>',msg['user']);}} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // // // // case '?setgoalcurrent':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){RepeatgoalCurrent=parseInt(message[1]);MsgUser('cmd=current set',msg['user']);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // case '?setgoalcount':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){RepeatGoalCount=parseInt(message[1]);MsgUser('cmd=count set',msg['user']);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // case '?setgoal':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){RepeatGoalMax=parseInt(message[1]);MsgUser('cmd=goal set',msg['user']);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // // case '?setsolotipmax':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){SoloTipMax=parseInt(message[1]);MsgUser('cmd=solo tip max set',msg['user']);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // // // case '?menu':{ MsgUser(FullTipMenu,msg['user']);msg['X-Spam']=true;break;} // case '?menuall':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgAll(FullTipMenu);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // case '?menudata':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgUser(DisplayTipMenuFullFullInfo(),msg['user']);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // case '?menudataop':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgUser(MenuItemDataDisplay(parseInt(message[1])),msg['user']);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // // // // case '?combodata':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgUser(DisplayTipComboData(),msg['user']);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // case '?combosearch':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgUser(SearchTipMenuComboLVL(parseInt(message[1]),parseInt(message[2])),msg['user']);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // case '?combocheck':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgUser(TipInComboCheck(parseInt(message[1]),parseInt(message[2])),msg['user']);} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} // // // case '?hethro':{ if(msg['user'] == cb.room_slug||msg['is_mod']||msg['user']=='hethro' ){MsgAll('---===<<<~~~~~~>>>===---\n---===<<<HETHRO>>>===---\n---===<<<~~~~~~>>===---');} // else{MsgAll('this is for Broadcasters and mods only');}msg['X-Spam']=true;break;} //......................................... }}else { for(i=0;i<=ClubMember.length;i++){ MsgAll(ClubMember[i][CMName]); if(msg['user']==ClubMember[i][CMName]) { var newmsg=''; newmsg+=ClubMember[i][CMGif]; newmsg+=ClubMember[i][CMNickname]; newmsg+=msg['m']; msg['m']= newmsg; } } } }) //============inti============== function inti(){ BuildClubMembers(); } inti(); //============MsgAll============== // shortends a simple message sent function MsgAll(msg){cb.sendNotice(msg,'');} //============MsgAllc============== // shortends a simple message sent function MsgAllc(msg,color){cb.sendNotice(msg,'','',color,'bold');} //============MsgUser============== function MsgUser(msg,user){cb.sendNotice(msg,user)}
© Copyright Chaturbate 2011- 2024. All Rights Reserved.