summary refs log tree commit diff homepage
path: root/src
diff options
context:
space:
mode:
authordestruc7i0n <dscdsouza@outlook.com>2020-10-31 00:10:37 -0400
committerdestruc7i0n <dscdsouza@outlook.com>2020-10-31 00:10:37 -0400
commitdc70468459c0b510b5bf8b8c045e9c374b84cad1 (patch)
tree4b4daa6e1b91fb2e5962ca3b6c9dbff865f2fe16 /src
parentMerge pull request #64 from Elveskevtar/master (diff)
downloadshulker-dc70468459c0b510b5bf8b8c045e9c374b84cad1.tar.gz
shulker-dc70468459c0b510b5bf8b8c045e9c374b84cad1.zip
update packages
Diffstat (limited to 'src')
-rw-r--r--src/Discord.ts12
-rw-r--r--src/MinecraftHandler.ts10
2 files changed, 10 insertions, 12 deletions
diff --git a/src/Discord.ts b/src/Discord.ts
index 93a99ff..7a4f5d6 100644
--- a/src/Discord.ts
+++ b/src/Discord.ts
@@ -114,13 +114,11 @@ class Discord {
         console.log('[INFO] User attempted a slash command without a role')
       }
     } else {
-        if (this.config.MINECRAFT_TELLRAW_DOESNT_EXIST) 
-        {
-            command = `/say ${this.makeMinecraftTellraw(message)}`
-        }
-        else {
-            command = `/tellraw @a ${this.makeMinecraftTellraw(message)}`
-        }
+      if (this.config.MINECRAFT_TELLRAW_DOESNT_EXIST) {
+        command = `/say ${this.makeMinecraftTellraw(message)}`
+      } else {
+        command = `/tellraw @a ${this.makeMinecraftTellraw(message)}`
+      }
     }
 
     if (this.config.DEBUG) console.log(`[DEBUG] Sending command "${command}" to the server`)
diff --git a/src/MinecraftHandler.ts b/src/MinecraftHandler.ts
index d9d30d6..452784a 100644
--- a/src/MinecraftHandler.ts
+++ b/src/MinecraftHandler.ts
@@ -90,14 +90,14 @@ class MinecraftHandler {
       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" }
+        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" }
+        return { username: serverUsername, message: 'Server is offline' }
     } else if (this.config.SHOW_PLAYER_ADVANCEMENT && logLine.includes('made the advancement')) {
       // handle advancements
       if (this.config.DEBUG){
@@ -132,7 +132,7 @@ class MinecraftHandler {
     // init the webserver
     this.app = express()
 
-    this.app.use((request, response, next) => {
+    this.app.use((request, _response, next) => {
       request.rawBody = ''
       request.setEncoding('utf8')