Bots Home
|
Create an App
EvaNickNames
Author:
dave1983dd1
Description
Source Code
Launch Bot
Current Users
Created by:
Dave1983dd1
var userName = []; var nickName = []; var ind; var nick; var i = 0; var z = 0; cb.settings_choices = [ { name: 'userName[0]', type: 'str', required: false, label: 'Username1', defaultValue: '', }, { name: 'nickName[0]', type: 'str', required: false, label: 'Nickname1', defaultValue: '', }, { name: 'userName[1]', type: 'str', required: false, label: 'Username2', defaultValue: '', }, { name: 'nickName[1]', type: 'str', required: false, label: 'Nickname2', defaultValue: '', }, { name: 'userName[2]', type: 'str', required: false, label: 'Username3', defaultValue: '', }, { name: 'nickName[2]', type: 'str', required: false, label: 'Nickname3', defaultValue: '', }, { name: 'userName[3]', type: 'str', required: false, label: 'Username4', defaultValue: '', }, { name: 'nickName[3]', type: 'str', required: false, label: 'Nickname4', defaultValue: '', }, { name: 'userName[4]', type: 'str', required: false, label: 'Username5', defaultValue: '', }, { name: 'nickName[4]', type: 'str', required: false, label: 'Nickname5', defaultValue: '', } ]; userName.push(cb.settings['userName[0]'], cb.settings['userName[1]'], cb.settings['userName[2]'], cb.settings['userName[3]'], cb.settings['userName[4]']); nickName.push(cb.settings['nickName[0]'], cb.settings['nickName[1]'], cb.settings['nickName[2]'], cb.settings['nickName[3]'], cb.settings['nickName[4]']); for(i=0; i<=4; i++) { cb.sendNotice(userName[i]); cb.sendNotice(nickName[i]); } cb.onMessage(function (msg) { ind = userName.indexOf(msg['user']); nick = nickName[ind]; msg['m'] = "[" + nick + "] " + msg['m']; return msg; });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.