Bots Home
|
Create an App
antibot
Author:
michal
Description
Source Code
Launch Bot
Current Users
Created by:
Michal
var users =[]; var pass=Math.floor((Math.random() * 9000) + 1001); var number =['zero','one','two','three','four','five','six','seven','eight','nine']; var passp=pass.toString().split(""); usernotice1="To prevent spambots grey users must first enter the following number to be able to chat"; usernotice2=number[passp[0]]+" "+number[passp[1]]+" "+number[passp[2]]+" "+number[passp[3]]+" (enter as a number , e.g. 2345)"; cb.chatNotice("Michal's anti spam bots is active."); cb.onEnter(function(user) { cb.sendNotice('Welcome ' + user['user'] + '!',user['user']); cb.sendNotice("Michal's anti spam bots is active for grey users.",user['user']); }); cb.onMessage(function (msg) { if (msg['user'].indexOf(users)!=-1){return msg} if (msg['m'] == pass.toString()){users.push.msg['user'];cb.sendNotice('You may talk now',msg['user']);msg['X-Spam'] = true;return msg} cb.sendNotice(msg[user]+' !!!',msg['user']); cb.sendNotice(usernotice1,msg['user']); cb.sendNotice(usernotice2,msg['user']); msg['X-Spam'] = true; return msg; });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.