Apps Home
|
Create an App
devmyroom_test
Author:
devmyroom
Description
Source Code
Launch App
Current Users
Created by:
Devmyroom
var total_tips = 0; var goal_tips = 0; var last_tipper = null; var last_tip = 0; var ht_username = null; var ht_amount = 0; var goal = 0; var new_follow_count = 0; cb.settings_choices = [{ name: 'goal', type: 'int', minValue: 0, defaultValue: 100, label: "Goal Amount (Set to 0 to Disable)" }, { name: 'reset', type: 'choice', choice1: 'Yes', choice2: 'No', label: "Reset the Goal when it is Met?" }, { name: 'goalAd', type: 'str', minLength: 0, MaxLength: 300, label: "Goal Description. Will automatically post in chat when Goal is reached (Optional)", required: false }, { name: 'chat_ad', type: 'int', minValue: 0, maxValue: 999, defaultValue: 10, label: 'Advertise Menu in Chat Every xx Minutes (Set 0 to Disable)' }]; cb.onFollow(user => { cb.chatNotice(user['user'] + ' Thank you for following!'); new_follow_count++; }); cb.onMessage(function (msg) { if (msg['user'] === ht_username) { msg['background'] = '##d399ff '; } if (msg['m'] === '/menu') { show_menu(msg['user']); } if (msg['m'] === '/showmenu') { show_menu(msg['user']); } return msg; }); listMenu = [ "testing 1", "testing 2", "testing 3" ]; function show_menu(user) { if(user === cb.room_slug) { cb.chatNotice('-----' + cb.room_slug + 's Tip Menu -----'); for (const i in listMenu) { cb.chatNotice(listMenu[i]); } }else{ cb.chatNotice('-----' + cb.room_slug + 's Tip Menu -----', msg['user']); for (const i in listMenu) { cb.chatNotice(i, user); } } } function init() { //update_app(); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.