diff options
author | destruc7i0n <6181960+destruc7i0n@users.noreply.github.com> | 2021-12-24 17:51:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-24 17:51:26 -0500 |
commit | 328eec0cd4fff00f19e734cc7e9b54124ab44cf5 (patch) | |
tree | 3a36a0884f2d280ced7fedefffef4ad08574deed /src/MinecraftHandler.ts | |
parent | check if channel is valid on launch (diff) | |
download | shulker-328eec0cd4fff00f19e734cc7e9b54124ab44cf5.tar.gz shulker-328eec0cd4fff00f19e734cc7e9b54124ab44cf5.zip |
updated to discord.js v13 (#77)
* updated to discord.js v13 * update loading of config * updated debug lines * rcon cleanup * more code cleanup * bump version * message about node.js requirement Co-authored-by: destruc7i0n <destruc7i0n@users.noreply.github.com>
Diffstat (limited to '')
-rw-r--r-- | src/MinecraftHandler.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/MinecraftHandler.ts b/src/MinecraftHandler.ts index 452784a..0882d19 100644 --- a/src/MinecraftHandler.ts +++ b/src/MinecraftHandler.ts @@ -58,7 +58,7 @@ class MinecraftHandler { if (logLine.startsWith('<')) { if (this.config.DEBUG){ - console.log('[DEBUG]: A player sent a chat message') + console.log('[DEBUG] A player sent a chat message') } const re = new RegExp(this.config.REGEX_MATCH_CHAT_MC) @@ -84,18 +84,18 @@ class MinecraftHandler { ) { // handle disconnection etc. if (this.config.DEBUG){ - console.log(`[DEBUG]: A player's connection status changed`) + console.log(`[DEBUG] A player's connection status changed`) } return { username: serverUsername, message: logLine } } else if (this.config.SHOW_SERVER_STATUS && (logLine.includes('Starting minecraft server'))) { if (this.config.DEBUG) { - console.log('[DEBUG]: Server has started') + console.log('[DEBUG] Server has started') } return { username: serverUsername, message: 'Server is online' } } else if (this.config.SHOW_SERVER_STATUS && (logLine.includes('Stopping the server'))) { if (this.config.DEBUG) { - console.log('[DEBUG]: Server has stopped') + console.log('[DEBUG] Server has stopped') } return { username: serverUsername, message: 'Server is offline' } } else if (this.config.SHOW_PLAYER_ADVANCEMENT && logLine.includes('made the advancement')) { |