Bots Home
|
Create an App
Spam Filter Jan 2016
Author:
bakerboyandcupcake
Description
Source Code
Launch Bot
Current Users
Created by:
Bakerboyandcupcake
/* Spam Filter August 2016 - created by Bakerboyandcupcake. If you have any other spam you would like us to add to improve the filtering of SPAM, please email the text that was spamming your room to bakerboyandcupcake@gmail.com and we shall add it to our next release. Thank you. Usage: Launch it as is and the BOT will filter all known Spam messages from chat. If you have any other phrases that you wish to add of your own, use the optional fields in the launch page. */ var spamText = [ 'Serious Financial problems', 'Premium Cheat com', 'Tokens Generator', 'Online Tokens Generator', 'Amecam,com', 'puslick84', 'www Premium Cheat com website', '[LEAK]', '[LEAKED]', 'free Tokens', 'Free Tokens!!', 'Tokens Giveaway', 'Unlimited Tokens', 'SwipeGirls', '19 F selling hot pics and vids', 'Get 500k Tokens!!! Check bio while supplies last.', 'freecambook', 'kikfuck', 'FREECAMSHOW', 'Tokens Adder', 'Token Adder', 'Want Tokens?', 's k y p e', 'Link in my bio!', 'Link my bio!', 'Open my cam!' ]; cb.settings_choices = [ {name: 'add_phrase_1', type: 'str', label: '(optional)', required: false}, {name: 'add_phrase_2', type: 'str', label: '(optional)', required: false}, {name: 'add_phrase_3', type: 'str', label: '(optional)', required: false}, {name: 'add_phrase_4', type: 'str', label: '(optional)', required: false}, {name: 'add_phrase_5', type: 'str', label: '(optional)', required: false}, {name: 'add_phrase_6', type: 'str', label: '(optional)', required: false}, {name: 'add_phrase_7', type: 'str', label: '(optional)', required: false}, {name: 'add_phrase_8', type: 'str', label: '(optional)', required: false}, {name: 'add_phrase_9', type: 'str', label: '(optional)', required: false}, {name: 'add_phrase_10', type: 'str', label: '(optional)', required: false} ]; cb.onMessage(function (msg) { if (msg['user'] != cb.room_slug && msg['is_mod'] != true) { var message = msg['m']; message = message.replace('\'/ +(?= )/g',''); // str.replace(/ +(?= )/g,''); var messageInLowerCase = message.toLowerCase(); for (var chkspam=0;chkspam<spamText.length;chkspam++) { if (messageInLowerCase['indexOf'](spamText[chkspam].toLowerCase()) >= 0) { cb.sendNotice('Your spam was not delivered to anyone',msg['user']); cb.sendNotice(msg['user'] + '\'s suspected spam [' + msg['m'] + '] was not delivered to public chat.',cb.room_slug,'','red','bold',''); // cb.sendNotice(message, [to_user], [background], [foreground], [weight], [to_group]) msg['X-Spam'] = true; } } } } ) cb.sendNotice('Spam Filter August 2016 - created by Bakerboyandcupcake. If you have any other spam you would like us to add to improve the filtering of SPAM, please email the text that was spamming your room to bakerboyandcupcake@gmail.com and we shall add it to our next release. Thank you.','','','','bold','blue'); // cb.sendNotice(message, [to_user], [background], [foreground], [weight], [to_group]) function init(){ // add other phrases entered to the spamText array. if (cb.settings.add_phrase_1 != '') { spamText.push(cb.settings.add_phrase_1); } if (cb.settings.add_phrase_2 != '') { spamText.push(cb.settings.add_phrase_2); } if (cb.settings.add_phrase_3 != '') { spamText.push(cb.settings.add_phrase_3); } if (cb.settings.add_phrase_4 != '') { spamText.push(cb.settings.add_phrase_4); } if (cb.settings.add_phrase_5 != '') { spamText.push(cb.settings.add_phrase_5); } if (cb.settings.add_phrase_6 != '') { spamText.push(cb.settings.add_phrase_6); } if (cb.settings.add_phrase_7 != '') { spamText.push(cb.settings.add_phrase_7); } if (cb.settings.add_phrase_8 != '') { spamText.push(cb.settings.add_phrase_8); } if (cb.settings.add_phrase_9 != '') { spamText.push(cb.settings.add_phrase_9); } if (cb.settings.add_phrase_10!= '') { spamText.push(cb.settings.add_phrase_10); } } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.