nbt chat moment
This commit is contained in:
parent
ba5a81875a
commit
fe4bc9c560
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ function inject (bot) {
|
|||
})
|
||||
|
||||
bot.on('system_chat', (message) => {
|
||||
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
|
||||
if (message === COMMANDSPY_ENABLED_MESSAGE.text || util.isDeepStrictEqual(message, COMMANDSPY_ENABLED_MESSAGE) || util.isDeepStrictEqual(message, COMMANDSPY_ENABLED_MESSAGE_2)) commandSpyEnabled = true
|
||||
else if (message === COMMANDSPY_DISABLED_MESSAGE.text || util.isDeepStrictEqual(message, COMMANDSPY_DISABLED_MESSAGE) || util.isDeepStrictEqual(message, COMMANDSPY_DISABLED_MESSAGE_2)) commandSpyEnabled = false
|
||||
})
|
||||
|
||||
bot.on('player_added', (player) => {
|
||||
|
|
Loading…
Reference in a new issue