Bots Home
|
Create an App
Hibot
Author:
fetchtest
Description
Source Code
Launch Bot
Current Users
Created by:
Fetchtest
cb.settings_choices = [ {name: 'sOwner', type: 'str', minLength: 1, maxLength: 255, label: "You", defaultValue: "fetchd"}, {name: 'sShitlst', type: 'str', minLength: 1, maxLength: 255, label: "The List"}, {name: 'sImAShitlord', type: 'str', minLength: 1, maxLength: 255, label: "Shitlord Messages", defaultValue: "I'm a shitlord who has permanently lost their privilege to be here. I can't say anything at all while I wait to be banned. Be sure to tell other models that I'm a shitlord if you see me around!"}, ]; cb.onEnter(function(user) { if (isBanned(user['user'])) { // Shitlisted cb.sendNotice("Shitlisted user " + user['user'] + " has entered the room!", cb.settings.sOwner, '#acebff', '#FF0000', 'bolder'); } else { // Normal viewer cb.sendNotice('Welcome ' + user['user'] + ', Say hi and make yourself known! :)', user['user'], '#CCF5EB', '', 'bold'); cb.sendNotice('Tip 25 for requests!', user['user'], '#CCF5EB', '', 'bold'); } }); cb.onMessage(function(msg) { if (isBanned(msg['user'])) { msg['m'] = cb.settings.sImAShitlord; } return msg; }); function isBanned(sUser) { var arsListedUsers = cb.settings.sShitlst.split(","); if (arsListedUsers.indexOf(sUser) > -1) { return true; } return false; }
© Copyright Chaturbate 2011- 2024. All Rights Reserved.