Bots Home
|
Create an App
Grey Demands Troll
Author:
lynnwilde
Description
Source Code
Launch Bot
Current Users
Created by:
Lynnwilde
/* Title: Grey Demands Troll Author: lynnwilde Version: 1.0.0 (03/28/2015) Based on "No Grey Demands Graphics" bot by badbadbubba */ var MAX_REASONS = 9; var MAX_CHECKS = 11; var EnterMsg = ''; //var verbs = ["learn", "exemplify", "offer", "express", "show"]; //var nouns = ["manners", "love", "kindness", "gratitude", "respect"]; var verbs = ["add", "arrange", "bake", "barbecue", "baste", "blend", "boil", "braise", "carve", "chill", "chop", "cook", "cool", "cover", "cut", "dice", "discard", "drain", "dress", "fillet", "flip", "fold", "freeze", "fry", "garnish", "glaze", "grab", "grate", "grill", "heat", "knead", "mash", "mash", "melt", "mince", "mix", "parboil", "peel", "poach", "pour", "prepare", "reduce", "refrigerate", "rinse", "roast", "rub", "sauté", "season", "simmer", "slice", "spice", "sprinkle", "steam", "store", "strain", "taste", "thaw", "thicken", "toast", "toss", "use", "warm", "whip", "whisk"]; var nouns = ["apples", "artichoke", "asparagus", "avocado", "bacon", "bananas", "barley", "basil", "bass", "beans", "beef", "beets", "blackberries", "blueberries", "bread", "broccoli", "butter", "cabbage", "cauliflower", "capers", "carrots", "celery", "cheese", "chicken", "chives", "cilantro", "coconuts", "collards", "corn", "crab", "cucumbers", "dill", "duck", "eggplant", "endive", "figs", "fish", "garlic", "ginger", "grapes", "ham", "horseradish", "kale", "lamb", "leeks", "lettuce", "liver", "lobster", "mangos", "melons", "milk", "mushrooms", "mussels", "mutton", "nectarines", "oats", "oil", "oysters", "papayas", "parsley", "parsnips", "pasta", "peaches", "pears", "peas", "pecans", "peppers", "pineapples", "plums", "pomegranates", "pork", "potatoes", "prawns", "pumpkins", "quail", "quinoa", "rabbit", "radishes", "raspberries", "rice", "salmon", "sardines", "scallops", "shallots", "shrimp", "spinach", "squash", "strawberries", "tilapia", "trout", "tuna", "turkey", "turnips", "veal", "venison", "watermelons", "yams", "zucchini"]; mutereasons = [ {regexp: /(?=.*\b(f?ck|finger|suck|show|zoom|open|see|touch|spread|lick|flash)\b)(?=.*\b(body|ass|pussy|boobs?|bobs?|tits?|vagina|nipples?|breasts?|asshole|cock|penis|vagina|face)\b)/i, notice: 'demands', index: 0}, {regexp: /:\b/, notice: 'graphics', index: 1}, {regexp: /(.)\1{2}/, notice: 'sticky keys', index: 2}, {regexp: /((?=.*pm)|(?=.*c2c)|(?=.*private)|(?=.*pvt)|(?=.*prvt))/i, notice: 'PM requests', index: 3}, {regexp: /((?=.*18f cam)|(?=.*streamingnaked)|(?=.*18female)|(?=.*erotimo)|(?=.*amecam)|(?=.*18 f)|(?=.*19 f)|(?=.*bestwork)|(?=.*premium.?.?cheat)|(?=.*goo)|(?=.*ellagocam)|(?=.*visit this))/i, notice: 'spam', index: 4}, {regexp: /((?=.*bitch)|(?=.*slut)|(?=.*whore)|(?=.*ugly)|(?=.*fat)|(?=.*pee)|(?=.*poo)|(?=.*peeing)|(?=.*fist)|(?=.*fart))/i, notice: 'rudeness', index: 5}, {regexp: /((?=.*bb)|(?=.*baby)|(?=.*babby)|(?=.*daddy))/i, notice: 'bb or baby', index: 6}, {regexp: /((?=.*f.?e.?e.?t)|(?=.*f33t?)|(?=.*foot)|(?=.*soles?)|(?=.*toes?))/i, notice: 'demands', index: 0}, {regexp: /[^\x00-\x7F]+/, notice: 'non-english', index: 8}, {regexp: /\b[A-Z]{2,}\b/, notice: 'all caps', index: 9}, {regexp: /(please|plz|pls).?.?$/i, notice: 'demands', index: 0}, {regexp: /((^mast.?rbate.?.?$)|(^squirt.?.?$)|(^kiss.?.?$)|(^cum.?.?$)|(^twerk.?.?$)|(^ass.?.?$)|(^boobs?.?.?$)|(^pussy.?.?$)|(^doggy.?.?$)|(^anal.?.?$)|(^zoom.?.?$)|(^show.?.?$)|(^tits?.?.?$)|(?=.*stand up.?.?)|(?=.*face.?.?)|(?=.*watch my cam.?.?)|(?=.*watch me.?.?))/i, notice: 'demands', index: 0}, ] cb.settings_choices = [ {name: 'trollhide', type: 'choice', choice1: 'troll', choice2: 'hide', defaultValue: 'troll', label: "Either troll (make fun of) greys making demands or hide their message."}, {name: 'sendrules', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Send viewers a notice about the trolling bot on room entry?"}, ]; cb.onEnter(function(user) { var i; if ((!user['has_tokens']) && (!user['is_mod']) && (!user['in_fanclub']) && (user['user'] != cb['room_slug']) && (cb.settings['sendrules'] == 'yes')) { //if ((cb.settings['sendrules'] == 'yes')) { cb.chatNotice('Welcome ' + user['user'] + '! Troll Greys For Demands bot is running',user['user'],'',cb.settings['msgcolor'],'bold'); cb.chatNotice(EnterMsg,user['user'],'',cb.settings['msgcolor'],'bold'); cb.chatNotice('You will be trolled publicly for violating these rules',user['user'],'',cb.settings['msgcolor'],'bold'); } }); function onEnterMsg(){ // var EnterMsg=''; // for (i=0; i<= MAX_REASONS; i++) { // if (cb.settings['re' + i] == 'yes'){ // EnterMsg += 'No ' + mutereasons[i].notice + ', '; // } // } var EnterMsg = 'If you make any demands, you will be trolled (made fun of) for everyone\'s enjoyment. You have been warned.'; return EnterMsg; } function checkmsg(msg) { var i, tmpmsg, reason, trollmsg; tmpmsg = msg['m']; trollmsg = false; if ((!msg['has_tokens']) && (!msg['is_mod']) && (!msg['in_fanclub']) && (!is_broadcaster(msg))) { //if ((msg['has_tokens']) && (is_broadcaster(msg))) { for (i=0; i<= MAX_CHECKS; i++) { if ((tmpmsg.search(mutereasons[i].regexp) != -1)){ trollmsg = true; reason = mutereasons[i].notice; } } if (trollmsg == true) { var resp = "@"+ msg['user'] +": "+ verbs[Math.floor(Math.random()*verbs.length)] +" "+ nouns[Math.floor(Math.random()*nouns.length)]; cb.sendNotice(resp, '', '', '', 'bold'); if (cb.settings['trollhide'] == 'hide') { msg['X-Spam'] = true; cb.chatNotice('Your msg was hidden from chat',msg['user'],'','','bold'); } } } } function is_broadcaster(msg) { return (msg['user'] == cb.room_slug); } function init() { if (cb.settings['sendrules'] == 'yes') { EnterMsg = onEnterMsg(); } } cb.onMessage(function (msg) { checkmsg(msg); return msg; }); init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.