Apps Home
|
Create an App
Mistress
Author:
tvaeera
Description
Source Code
Launch App
Current Users
Created by:
Tvaeera
cb.settings_choices = [ { name: 'settings', type: 'str', required: true, minLength: 1, maxLength: 10000, defaultValue: "{\"roomSubject\": \"Hello!\", \"admin\":\"tvaeera\"}", label: "JSON Settings" } ]; var mistressCore = { data: {}, init: function () { this.loadSettings(); }, loadSettings: function() { try { this.data = JSON.parse(cb.settings.settings); } catch (e) { cb.setTimeout(this.loadSettings, 500); return null; } cb.changeRoomSubject(this.data.roomSubject); }, saveSettings: function(msg) { if (msg.user = this.data.admin || msg.is_mod === true) { chaturbateApp.notice(JSON.stringify(this.data), this.data.admin); } else { chaturbateApp.notice("You do not have permission to access the command!"); } }, }; mistressCore.init();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.