From d0a6025b9b6ea7a8c71866c3bf874d90be5fbf00 Mon Sep 17 00:00:00 2001 From: NigeParis Date: Thu, 15 Jan 2026 17:40:10 +0100 Subject: [PATCH] Cleanup and tidy stuff --- src/chat/src/chatBackHelperFunctions/color.ts | 14 +++++++------- src/chat/src/routes/broadcastNextGame.ts | 18 ------------------ src/chat/src/routes/broadcastTourStatus.ts | 18 ------------------ 3 files changed, 7 insertions(+), 43 deletions(-) diff --git a/src/chat/src/chatBackHelperFunctions/color.ts b/src/chat/src/chatBackHelperFunctions/color.ts index c3b2e31..0708cda 100644 --- a/src/chat/src/chatBackHelperFunctions/color.ts +++ b/src/chat/src/chatBackHelperFunctions/color.ts @@ -1,7 +1,7 @@ -export const color = { - red: '\x1b[31m', - green: '\x1b[32m', - yellow: '\x1b[33m', - blue: '\x1b[34m', - reset: '\x1b[0m', -}; \ No newline at end of file +// export const color = { +// red: '\x1b[31m', +// green: '\x1b[32m', +// yellow: '\x1b[33m', +// blue: '\x1b[34m', +// reset: '\x1b[0m', +// }; \ No newline at end of file diff --git a/src/chat/src/routes/broadcastNextGame.ts b/src/chat/src/routes/broadcastNextGame.ts index 1bf575a..5292ccb 100644 --- a/src/chat/src/routes/broadcastNextGame.ts +++ b/src/chat/src/routes/broadcastNextGame.ts @@ -8,24 +8,6 @@ export const ChatReq = Type.Object({ export type ChatReq = Static; -// const route: FastifyPluginAsync = async (fastify): Promise => { -// fastify.post<{ Body: ChatReq }>( -// '/api/chat/broadcast', -// { -// schema: { -// body: ChatReq, -// hide: true, -// }, -// config: { requireAuth: false }, -// }, -// async function(req, res) { -// // broadcast(this, { command: '', destination: '', user: 'CMwaLeSever!!', text: req.body.message, SenderWindowID: 'server' }); -// void res; -// }, -// ); -// }; -// export default route; - const route: FastifyPluginAsync = async (fastify): Promise => { fastify.post<{ Body: ChatReq }>('/broadcastNextGame', { schema: { diff --git a/src/chat/src/routes/broadcastTourStatus.ts b/src/chat/src/routes/broadcastTourStatus.ts index 9e45378..3d0bba9 100644 --- a/src/chat/src/routes/broadcastTourStatus.ts +++ b/src/chat/src/routes/broadcastTourStatus.ts @@ -8,24 +8,6 @@ export const ChatReq = Type.Object({ export type ChatReq = Static; -// const route: FastifyPluginAsync = async (fastify): Promise => { -// fastify.post<{ Body: ChatReq }>( -// '/api/chat/broadcast', -// { -// schema: { -// body: ChatReq, -// hide: true, -// }, -// config: { requireAuth: false }, -// }, -// async function(req, res) { -// // broadcast(this, { command: '', destination: '', user: 'CMwaLeSever!!', text: req.body.message, SenderWindowID: 'server' }); -// void res; -// }, -// ); -// }; -// export default route; - const route: FastifyPluginAsync = async (fastify): Promise => { fastify.post<{ Body: ChatReq }>('/broadcastTourStatus', { schema: {