Organized the differences between server and docker versions.

We are launching a docker version (server version) today so we want to just organize the repo
so its easier to navigate.
This commit is contained in:
2025-12-16 21:50:22 -05:00
parent b86f14a8f2
commit 28ff6ccc68
193 changed files with 23188 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
import { FastifyRequest, FastifyReply } from "fastify";
import { setActivity, initRPC } from "./rp.service";
let initialized = false;
export function init() {
if (!initialized) {
initRPC(process.env.DISCORD_CLIENT_ID!);
initialized = true;
}
}
export async function setRPC(request: FastifyRequest, reply: FastifyReply) {
const { details, state, mode } = request.body as {
details?: string;
state?: string;
mode?: "watching" | "reading" | string;
};
setActivity({
details,
state,
mode
});
return reply.send({ ok: true });
}