Bots Home
|
Create an App
SpinTheWheelTiered
Author:
trifoenda
Description
Source Code
Launch Bot
Current Users
Created by:
Trifoenda
cb.settings_choices = [{ name: 'spin_cost_tier1', type: 'int', minValue: 1, maxValue: 999, defaultValue: 25, label: 'Cost of spin tier 1 (1-999): ' },{ name: 'spin_cost_tier2', type: 'int', minValue: 1, maxValue: 999, defaultValue: 25, label: 'Cost of spin tier 2 (1-999): ' }] let bg = '#ffffff' let fg = '#000000' let spinning = {} cb.onEnter(user => { cb.sendNotice(`Hello ${user.user}`, user.user, bg, fg, 'bold') }) cb.onMessage(m => { if (m.m[0] !== '/') return m let u = m.user let msg = m.m.split(' ') let isMod = (cb.room_slug === u || m.is_mod) switch (msg[0]) { case '/spin': if (spinning[u] === undefined) { spinning[u] = 1 } else { spinning[u]++ } m['X-Spam'] = true m.background = '#d9d9d9' cb.sendNotice(`msgReward (${spinning[u]})`, u, bg, fg, 'bold') return m } return m })
© Copyright Chaturbate 2011- 2024. All Rights Reserved.