Bots Home
|
Create an App
ripo1
Author:
ripoblus
Description
Source Code
Launch Bot
Current Users
Created by:
Ripoblus
cb.log('settings') cb.log($$settingsObj.toString()) cb.log($$settingsObj()) cb.settings_choices = [ {name:'tokens_per_minute', type:'int', minValue:1, maxValue:99, defaultValue:5, label: "Tokens per Minute"} ]; (function() { cb.log('cb.settings_choices.tokens_per_minute: ' + cb.settings.tokens_per_minute); cb.settings.tokens_per_minute = 60; cb.log('cb.settings_choices.tokens_per_minute: ' + cb.settings.tokens_per_minute); cb.settings_choices = [ {name:'tokens_per_minute', type:'int', minValue:1, maxValue:99, defaultValue: 50, label: "Tokens per Minute"} ]; })(); const hello = () => { cb.log('let and const declarations'); }; cb.log('supports Set'); const mySet = new Set(); cb.log(mySet); cb.log('supports Class'); class MyClass1 { constructor() { cb.log('MyClass1 constructor'); } showInstance() { cb.log('MyClass1 instance method'); } static showStatic() { cb.log('MyClass1 static method'); } } const mc =new MyClass1(); mc.showInstance(); MyClass1.showStatic(); cb.log(cb.changeRoomSubject.toString()) cb.log(cb.drawPanel.toString()) cb.log(cb.onEnter.toString()) cb.log(cb.onLeave.toString()) cb.log(cb.onTip.toString()) cb.log(cb.onMessage.toString()) cb.log(cb.sendNotice.toString()) cb.log(cb.tipOptions.toString()) cb.log(cb.onDrawPanel.toString()) cb.log($recv.toString()) cb.log($send.toString()) cb.log($sendSync.toString()) cb.log($recvSync.toString()) for (obj in $$settingsObj) { cb.log(obj); } cb.log('slot = ' + cb.settings.slot); cb.log('settings') cb.log($$settingsObj.toString()) cb.log($$settingsObj()) cb.$$send("sendNotice2", {msg:'Wham bam!'}) cb.$$send("sendNotice", {msg:'Wham bam 2!'}) for (let setting in cb.settings) { cb.log(setting) } cb.log(cb.settings.slot) cb.log(cb.settings.get.toString()) cb.onMessage((m) => { m['f'] = 'Times New Roman, serif'; return m; }) cb.log('arraycontains'); cb.log(cbjs.arrayContains('__proto__')) cb.sendNotice('\\u0041') cb.sendNotice("\ud83c\uddfa" + "\ud83c\uddf8") cb.sendNotice('testing string arst@arst.com') cb.onMessage(message => { message.m = ':smile :wink :wink :wink :wink' return message }) for (obj in cbjs) { cb.log(obj); } for (obj in Math) { cb.log(obj) } const equalsTwo = arg => arg === 2 const arr = [1,2,3] cb.log('arr.findIndex()') cb.log(arr.findIndex(equalsTwo))
© Copyright Chaturbate 2011- 2024. All Rights Reserved.