This commit is contained in:
Chipmunk 2024-09-04 12:03:47 -04:00
parent 098afc9718
commit ba5a81875a

View file

@ -28,8 +28,8 @@ function inject (bot) {
})
bot.on('system_chat', (message) => {
if (util.isDeepStrictEquals(message, COMMANDSPY_ENABLED_MESSAGE) || util.isDeepStrictEqual(message, COMMANDSPY_ENABLED_MESSAGE_2)) commandSpyEnabled = true
else if (util.isDeepStrictEquals(message, COMMANDSPY_DISABLED_MESSAGE) || util.isDeepStrictEqual(message, COMMANDSPY_DISABLED_MESSAGE_2)) commandSpyEnabled = false
if (util.isDeepStrictEqual(message, COMMANDSPY_ENABLED_MESSAGE) || util.isDeepStrictEqual(message, COMMANDSPY_ENABLED_MESSAGE_2)) commandSpyEnabled = true
else if (util.isDeepStrictEqual(message, COMMANDSPY_DISABLED_MESSAGE) || util.isDeepStrictEqual(message, COMMANDSPY_DISABLED_MESSAGE_2)) commandSpyEnabled = false
})
bot.on('player_added', (player) => {