NPM update, removed CRUD functions from object repository, added prettier

This commit is contained in:
2024-07-22 01:36:05 +02:00
parent 792abdfaf6
commit 6131a8455a
51 changed files with 1450 additions and 1460 deletions

View File

@ -1,9 +1,9 @@
import { Server } from "socket.io";
import { Server } from 'socket.io'
type CommandInput = string[]
export default function (input: CommandInput, io: Server) {
const message: string = input.join(' ') ?? null;
if (!message) return console.log('message is required');
io.emit('notification', {message: message});
};
const message: string = input.join(' ') ?? null
if (!message) return console.log('message is required')
io.emit('notification', { message: message })
}

View File

@ -1,8 +1,8 @@
import { Server } from "socket.io";
import ZoneManager from "../managers/ZoneManager";
import { Server } from 'socket.io'
import ZoneManager from '../managers/ZoneManager'
type CommandInput = string[]
export default function (input: CommandInput, io: Server) {
console.log(ZoneManager.getLoadedZones())
};
console.log(ZoneManager.getLoadedZones())
}