Bots Home
|
Create an App
Spam Filter September 2017
Author:
sircumagain
Description
Source Code
Launch Bot
Current Users
Created by:
Sircumagain
/* Spam Filter September 2017 - created by SirCumAgain. 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 SirCumAgain@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 = [ '[LEAK]', '[LEAKED]', '19 F selling hot pics and vids', 'Amecam,com', 'Free Tokens!!', 'free Tokens', 'freecambook', 'FREECAMSHOW', 'Get 500k Tokens!!! Check bio while supplies last.', 'kikfuck', 'Link in my bio!', 'Link my bio!', 'M aybe $ex?', 'Mayb eF*ck?', 'MaybeF* ck? ', 'Maybe $ex?', 'Maybe F*c k?!!', 'Maybe$ex?', 'Online Tokens Generator', 'Open my cam!', 'Play⠀⠀with', 'Premium Cheat com', 'puslick84', 's k y p e', 'Serious Financial problems', 'SwipeGirls', 'Token Adder', 'Tokens Adder', 'Tokens Generator', 'Tokens Giveaway', 'Unlimited Tokens', 'Want Tokens?', 'WhoF*ck Me?!', 'WhoF*ckMe?!', 'www Premium Cheat com website' ]; 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 September 2017 - created by SirCumAgain. 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 SirCumAgain@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.