Prod. command fix attempt #2
This commit is contained in:
parent
6a286590b4
commit
3ec4bc2557
@ -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 })
|
||||
|
@ -3,6 +3,6 @@ import ZoneManager from '../managers/zoneManager'
|
||||
|
||||
type CommandInput = string[]
|
||||
|
||||
export default function (input: CommandInput, io: Server) {
|
||||
module.exports = function (input: CommandInput, io: Server) {
|
||||
console.log(ZoneManager.getLoadedZones())
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import fs from 'fs'
|
||||
import sharp from 'sharp'
|
||||
import { commandLogger } from '../utilities/logger'
|
||||
|
||||
export default async function tiles() {
|
||||
module.exports = async function () {
|
||||
// Get all tiles
|
||||
const tilesDir = path.join(process.cwd(), 'public', 'tiles');
|
||||
const tiles = fs.readdirSync(tilesDir).filter((file) => file.endsWith('.png'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user