From 7ef7b03e6546cec50ede58e6e5bf88deb58f2557 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 23 Mar 2017 01:11:13 +0000 Subject: [PATCH] And Define --- commands/search/define.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/define.js b/commands/search/define.js index 8cd59de3..17ec105c 100644 --- a/commands/search/define.js +++ b/commands/search/define.js @@ -27,7 +27,7 @@ module.exports = class DefineCommand extends commando.Command { console.log("[Command] " + message.content); let defineThis = encodeURI(message.content.split(" ").slice(1).join(" ")); request - .get('http://api.wordnik.com:80/v4/word.json/' + encodeURI(defineThis) + '/definitions') + .get('http://api.wordnik.com:80/v4/word.json/' + defineThis + '/definitions') .query({ limit: 1, includeRelated: false, useCanonical: false, includeTags: false, api_key: config.wordnikkey }) .then(function (response) { const embed = new Discord.RichEmbed()