1
0
forked from noxious/server

#184: Added commands to toggle rain / fog, command bug fix, minor improvements

This commit is contained in:
2024-11-05 23:15:56 +01:00
parent 26dbaa45a7
commit c4a42066ab
6 changed files with 160 additions and 12 deletions

View File

@ -1,6 +1,6 @@
export function isCommand(message: string, command?: string) {
if (command) {
return message.startsWith(`/${command} `)
return message === `/${command}` || message.startsWith(`/${command} `)
}
return message.startsWith('/')
}