mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
And Define
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = class DefineCommand extends commando.Command {
|
|||||||
console.log("[Command] " + message.content);
|
console.log("[Command] " + message.content);
|
||||||
let defineThis = encodeURI(message.content.split(" ").slice(1).join(" "));
|
let defineThis = encodeURI(message.content.split(" ").slice(1).join(" "));
|
||||||
request
|
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 })
|
.query({ limit: 1, includeRelated: false, useCanonical: false, includeTags: false, api_key: config.wordnikkey })
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
const embed = new Discord.RichEmbed()
|
const embed = new Discord.RichEmbed()
|
||||||
|
|||||||
Reference in New Issue
Block a user