Bots Home
|
Create an App
TarnerTime's Bot
Author:
testtarnertime
Description
Source Code
Launch Bot
Current Users
Created by:
Testtarnertime
/************************************************************* ** ** Title: TarnerTime's Toolbox ** Author/Collector: tarnertime ** Version: 1.0 ** Description: A Collection of functions and bots I like. ** *************************************************************/ /////////////////////// // Setup vars // /////////////////////// var botVersion = "1.0"; var botMsgBg = '#885ead'; //////////////////////////////////////////////////// // Handle messages from users // //////////////////////////////////////////////////// cb.onMessage(function(message) { // Gender Bot var gender = message['gender']; var genderStr = ""; switch (gender) { case 'm': genderStr = ':avatar_gen_male'; break; case 'f': genderStr = ':avatar_gen_female'; break; case 's': genderStr = ':avatar_gen_trans'; break; case 'c': genderStr = ':avatar_gen_couple'; break; default: genderStr = ':avatar_gen_unknown'; break; } message['m'] = genderStr + ' ' + message['m']; }); cb.tipOptions(function(user) { return {options:[{label: 'choice1'}, {label: 'choice2'}, {label: 'choice3'}], label:"Select a choice:"}; }); function announceBot() { statusMsg = '***TarnerTime\'s Toolbox ' + botVersion + ' *** by TarnerTime\n'; return statusMsg; } cb.chatNotice(announceBot(),'', botMsgBg,'','bold');
© Copyright Chaturbate 2011- 2024. All Rights Reserved.