Bots Home
|
Create an App
rhBot
Author:
res_humilis
Description
Source Code
Launch Bot
Current Users
Created by:
Res_Humilis
function padInt(num) { if (num < 10) return '0'+num; return num.toString(); }; function startTimer() { startDate = new Date(); cb.setTimeout(timerTimeout, 227000); timerActive = true; cb.sendNotice("Timer started", '','','#d40000','bold',''); }; function timerTimeout() { if (!timerActive) return; cb.sendNotice("Time spent in bondage:" +lookTimer(), '','','#EC8000','bold','') }; function lookTimer() { var time = Math.floor((new Date() - startDate)/1000), modHours = time%3600, modMins = modHours%60; return padInt(Math.floor(time/3600)) + ':' + padInt(Math.floor(modHours/60)) + ':' + padInt(modMins); }; function stopTimer() { timerActive = false; cb.sendNotice("Timer stopped at: " + lookTimer(), '','','#d40000','bold',''); }; function messageFunc(message) { if (message['user'] == "res_humilis") { if (message['m'] == "start timer") { startTimer(); } else if (message['m'] == "stop timer") { stopTimer(); } } }; cb.onMessage(messageFunc); cb.setTimeout(function(){cb.sendNotice("Tip 20 tokens to change the active camera!!!", '','','#CC4040','bold','')}, 90000);
© Copyright Chaturbate 2011- 2026. All Rights Reserved.