Bots Home
|
Create an App
Test21
Author:
gandalfthegrey1
Description
Source Code
Launch Bot
Current Users
Created by:
Gandalfthegrey1
//JOLIE BOT cb.settings_choices = [ {name:'blocked_words_list', type:'str', label: "Blocked Words"}, {name:'bwl_notify_user', type:'choice', label: "Notify user when they use a blocked word?", choice1:'Yes', choice2:'No', defaultValue:'No'}, {name:'rules_list', type:'str', label: "Rules"}, ]; cb.onMessage(function (message) { //BLOCKED WORDS LIST let blocked_words_list = cb.settings.blocked_words_list.split(","); for(i = 0; i < blocked_words_list.length; i++){ if(message['m'].includes(blocked_words_list[i])){ msg['X-Spam'] = true; } } }); //Rules function displayRules(){ let rules_list = cb.settings.rules_list.split(","); cb.sendNotice("RULES", "", '#d3a3ff', '#ebebeb', 'bold'); for(i = 0; i < rules_list.length; i++){ cb.sendNotice(rules_list[i] , "", '#d3a3ff', '#ebebeb', 'bold'); } } function rollingNotifier(){ displayRules(); cb.setTimeout(rollingNotifier, 10000) } cb.setTimeout(rollingNotifier, 5000);
© Copyright Chaturbate 2011- 2024. All Rights Reserved.