summary refs log tree commit diff homepage
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--index.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/index.js b/index.js
index e034e9a..435ac15 100644
--- a/index.js
+++ b/index.js
@@ -67,11 +67,13 @@ shulker.on("ready", function() {
 });
 
 shulker.on("message", function(message) {
-    if (message.author.id !== shulker.user.id) {
-        var data = {
-            text: "<" + message.author.username + "> " + message.content
-        };
-        client.send('tellraw @a ["",' + JSON.stringify(data) + ']');
+    if (message.channel.id === shulker.channels.get("name", c.DISCORD_CHANNEL).id) {
+        if (message.author.id !== shulker.user.id) {
+            var data = {
+                text: "<" + message.author.username + "> " + message.content
+            };
+            client.send('tellraw @a ["",' + JSON.stringify(data) + ']');
+        }
     }
 });