Bots Home
|
Create an App
emlalock
Author:
kindasubby
Description
Source Code
Launch Bot
Current Users
Created by:
Kindasubby
var total_tipped = 0; cb.onTip(function(tip) { var tipped_amount = parseInt(tip['amount']); total_tipped += tipped_amount; var time_to_add = tipped_amount * 60; // assuming you want to add 1 minute per token tipped, adjust as needed var request_url = "https://api.emlalock.com/add?userid=1eut90jm8evm64c&apikey=2w67w497lx&value=" + time_to_add; var xhr = new XMLHttpRequest(); xhr.open('GET', request_url, true); xhr.onload = function() { if (xhr.status === 200) { cb.chatNotice("Added " + time_to_add + " seconds to Emlalock lockup time."); } else { cb.chatNotice("Error adding time to Emlalock lockup: " + xhr.responseText); } }; xhr.send(); });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.