Fixed bundling into an exe not working as intended.

This commit is contained in:
2025-12-14 13:16:35 -05:00
parent 76c9eb38f6
commit 5d8441bf27
124 changed files with 279314 additions and 103 deletions

View File

@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.init = init;
exports.setRPC = setRPC;
const rp_service_1 = require("./rp.service");
let initialized = false;
function init() {
if (!initialized) {
(0, rp_service_1.initRPC)(process.env.DISCORD_CLIENT_ID);
initialized = true;
}
}
async function setRPC(request, reply) {
const { details, state, mode } = request.body;
(0, rp_service_1.setActivity)({
details,
state,
mode
});
return reply.send({ ok: true });
}