forked from noxious/server
#184: Added commands to toggle rain / fog, command bug fix, minor improvements
This commit is contained in:
@ -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('/')
|
||||
}
|
||||
|
Reference in New Issue
Block a user