Bots Home
|
Create an App
spambot test
Author:
ellipsis
Description
Source Code
Launch Bot
Current Users
Created by:
Ellipsis
const spamlist = ['seeme','see my','check my', 'check me', 'checkme','seemy','cam 2 cam','.club', '.us', '.tk', 'CheckMy', 'C 2 C', 'C2C', 'C 2C', 'C2 C', 'CheckMy', 'CAM2CAM', 'c2c', '.me', '.pw', '-->']; const spamlist2 = ['boys','guys']; function longer(champ, contender) { return (contender.length > champ.length) ? contender: champ; } function longestWord(str) { var words = str.split(' '); return words.reduce(longer); } cb.onMessage(function (msg) { if(spamlist.some(spam => msg['m'].toLowerCase().includes(spam.toLowerCase()))) { msg['X-Spam'] = true; cb.sendNotice('Your message was unable to be sent.', msg['user']); } else if(msg['m'].length < 10) { if (spamlist2.some(spam => longestWord(msg['m']).toLowerCase().includes(spam.toLowerCase()))) { msg['X-Spam'] = true; cb.sendNotice('Your message was unable to be sent.', msg['user']); } } return msg; });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.