Bots Home
|
Create an App
Parity Test 01 Notices
Author:
test123908910
Description
Source Code
Launch Bot
Current Users
Created by:
Test123908910
/* * Parity Test Bot #1 — Notice Formatting * Tests: sendNotice with all parameter combinations * Mode: Bot */ cb.settings_choices = [ { name: 'greeting', type: 'str', label: 'Greeting Text', defaultValue: 'Hello from parity test!', maxLength: 200 } ]; // On load: send a series of notices testing all formatting options cb.sendNotice('PARITY TEST: Plain notice (no styling)'); cb.sendNotice('PARITY TEST: Bold notice', '', '', '', 'bold'); cb.sendNotice('PARITY TEST: Red on yellow', '', '#FFFFCC', '#CC0000', 'bold'); cb.sendNotice('PARITY TEST: White on blue', '', '#336699', '#FFFFFF', 'normal'); cb.sendNotice('PARITY TEST: Green background', '', '#CCFFCC', '#006600', 'bold'); cb.sendNotice('PARITY TEST: To broadcaster only', cb.room_slug, '#FFE0CC', '#CC4400', 'normal'); cb.sendNotice('PARITY TEST: Line one\\nLine two\\nLine three'); cb.sendNotice('PARITY TEST: Setting value = ' + cb.settings.greeting); cb.onMessage(function(msg) { if (msg.m === '/test') { cb.sendNotice('Test command received from ' + msg.user, msg.user, '#E8F5E9', '#2E7D32', 'bold'); msg['X-Spam'] = true; } return msg; }); cb.onTip(function(tip) { cb.sendNotice(tip.from_user + ' tipped ' + tip.amount + ' tokens!', '', '#FFF3E0', '#E65100', 'bold'); }); cb.onEnter(function(user) { cb.sendNotice('Welcome ' + user.user + '!', user.user, '#E3F2FD', '#1565C0', 'normal'); }); cb.log('Parity Test Bot #1 loaded successfully');
© Copyright Chaturbate 2011- 2026. All Rights Reserved.