forked from noxious/server
Prod. command fix attempt #2
This commit is contained in:
@ -2,7 +2,7 @@ import { Server } from 'socket.io'
|
||||
|
||||
type CommandInput = string[]
|
||||
|
||||
export default function (input: CommandInput, io: Server) {
|
||||
module.exports = function (input: CommandInput, io: Server) {
|
||||
const message: string = input.join(' ') ?? null
|
||||
if (!message) return console.log('message is required')
|
||||
io.emit('notification', { message: message })
|
||||
|
Reference in New Issue
Block a user