summary refs log tree commit diff homepage
path: root/src/Discord.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Discord.ts12
1 files changed, 5 insertions, 7 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`)