Bots Home
|
Create an App
ArtemisSpanksBotMk1
Author:
dark_muad_dib
Description
Source Code
Launch Bot
Current Users
Created by:
Dark_Muad_Dib
var spanks; var spanks = 0; var afkspanks; var afkspanks = 0; var spanksamount = 5 var spankson = true var afkspankson = false var addspanks = 11 var subspanks = 10 var afkadd = 5 var spanksonmessage = 'Spanks have been enabled' var spanksoffmessage = 'Spanks have been disabled' var afkspanksonmessage = 'A Special Deal on Spanks has Started!! Spanks are 1/2 off!!' cb.onMessage (function(msg){ var message = msg['m'] if (message.startsWith('/') == true){ msg['X-Spam'] = true if (message == "/spanks"){ cb.chatNotice("Spanks Total: " + spanks, msg['u']) } if (msg['user'] == cb.room_slug || msg['is_mod'] == true){ if (message == "/spankson"){ spankson = true cb.chatNotice(spanksonmessage) } if (message == "/spanksoff"){ spankson = false cb.chatNotice(spanksoffmessage) } if (message == "/afkon"){ afkspankson = true cb.chatNotice(afkspanksonmessage) } if (message == "/afkoff"){ afkspankson = false var afkspanksoffmessage = 'The Deal on Spanks has Ended! Total Spanks: ' + afkspanks cb.chatNotice(afkspanksoffmessage) afkspanks = 0 } if (message.startsWith('/spanked') == true){ var spanked = Math.abs(message.substr(9, 4)) if (isNaN(spanked) == false){ spanks -= spanked cb.chatNotice("Removed: " + spanked + " Spanks. New Spanks Total: " + spanks) } } if (message.startsWith('/addspanks') == true){ var addspanks = Math.abs(message.substr(11, 4)) if (isNaN(addspanks) == false){ spanks += addspanks cb.chatNotice("Added: " + addspanks + " Spanks. New Spanks Total: " + spanks) } } } } return msg; }); cb.onTip (function(tip){ var tipper = tip['from_user'] if (spankson == true){ if (parseInt(tip['amount']) == addspanks){ spanks += spanksamount; var addmessage = tipper + " has tipped " + addspanks + " to add spanks. Spanks: " + spanks cb.chatNotice (addmessage); } if (parseInt(tip['amount']) == subspanks){ spanks -= spanksamount; var submessage = tipper + " has tipped "+ subspanks + " to remove spanks. Spanks: " + spanks cb.chatNotice (submessage); }} if (afkspankson == true){ if (parseInt(tip['amount']) == afkadd){ afkspanks += spanksamount; var afkmessage = tipper + " has tipped " + afkadd + " for afk spanks. Spanks: " + afkspanks cb.chatNotice (afkmessage); }} });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.