From: xangelo Date: Mon, 5 Jun 2023 18:54:07 +0000 (-0400) Subject: fix: missing defined type X-Git-Tag: v0.0.1~63 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=7aa155dfc7b8ec374ad1b710e78c696d8168ecff;p=risinglegends.git fix: missing defined type --- diff --git a/src/server/api.ts b/src/server/api.ts index 99b470a..5f9693e 100644 --- a/src/server/api.ts +++ b/src/server/api.ts @@ -102,7 +102,7 @@ io.on('connection', async socket => { socket.on('chat', (msg: string) => { if(msg.length > 0) { - let message; + let message: Message; if(msg.startsWith('/server lmnop')) { message = broadcastMessage('server', msg.split('/server lmnop ')[1]); } diff --git a/src/server/chat-commands/server-broadcast.ts b/src/server/chat-commands/server-broadcast.ts new file mode 100644 index 0000000..e69de29