delete clock

NOT EVEN AVG MORE THAN 1 REQUEST PER MIN YET THEY STILL FUCKING BANNING
This commit is contained in:
Lamp 2022-05-18 11:49:34 -07:00
parent f716bf9cc3
commit 20bdae485b

@ -58,7 +58,6 @@ client.once("ready", async () => {
cb();
});
});
startClock();
do {
try {
await syncStat();
@ -112,17 +111,3 @@ async function getWorldNameForId(worldId) {
global.client = client;
global.vrc = vrc;
global.syncStat = syncStat;
function startClock() {
(function clock() {
var d = new Date();
if (!(d.getMinutes() % 2)) // skip odd minutes to keep average request rate under 1 per minute
vrc.usersApi.updateUser(selfUserId, {
statusDescription: d.toLocaleTimeString([], {timeStyle: 'short'})
}).catch(error => console.error("clock", error.message));
d.setSeconds(60);
setTimeout(clock, d - Date.now());
})();
}