summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--index.js6
-rw-r--r--package.json2
2 files changed, 4 insertions, 4 deletions
diff --git a/index.js b/index.js
index f3f9629..2c21524 100644
--- a/index.js
+++ b/index.js
@@ -39,14 +39,14 @@ shulker.on("ready", function() {
                 console.log("[DEBUG] Text: " + bodymatch[2]);
             }
             var message = "`" + bodymatch[1].replace(/(\ยง[A-Z-a-z-0-9])/g, "") + "`:" + bodymatch[2];
-            shulker.channels.get("id", channel).sendMessage(message);
+            shulker.channels.get(channel).sendMessage(message);
         }
         response.send("");
     });
 });
 
 shulker.on("message", function(message) {
-    if (message.channel.id === shulker.channels.get("name", c.DISCORD_CHANNEL).id) {
+    if (message.channel.id === shulker.channels.get(c.DISCORD_CHANNEL_ID).id) {
         if (message.author.id !== shulker.user.id) {
             var data = {
                 text: "<" + message.author.username + "> " + message.cleanContent
@@ -61,7 +61,7 @@ shulker.on("message", function(message) {
     }
 });
 
-shulker.loginWithToken(c.DISCORD_TOKEN);
+shulker.login(c.DISCORD_TOKEN);
 
 var ipaddress = process.env.OPENSHIFT_NODEJS_IP || process.env.IP || "127.0.0.1";
 var serverport = process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT || c.PORT;
diff --git a/package.json b/package.json
index ceeb121..ca6b319 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
   },
   "homepage": "https://github.com/destruc7i0n/shulker#readme",
   "dependencies": {
-    "discord.js": "^6.1.0",
+    "discord.js": "^11.0.0",
     "express": "^4.13.3"
   },
   "devDependencies": {