diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index 6a1b4d46..432bef93 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -43,7 +43,7 @@ module.exports = class WikipediaCommand extends commando.Command { let description = data.extract.substr(0, 1900).split('\n').join('\n\n'); const embed = new Discord.RichEmbed() .setColor(0xE7E7E7) - .setTitle(data.name) + .setTitle(data.title) .setURL(`https://en.wikipedia.org/wiki/${title}`) .setAuthor("Wikipedia", "https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/1122px-Wikipedia-logo-v2.svg.png") .setDescription(description); diff --git a/commands/search/youtube.js b/commands/search/youtube.js index 20d57d4e..d3b5a7f9 100644 --- a/commands/search/youtube.js +++ b/commands/search/youtube.js @@ -38,7 +38,6 @@ module.exports = class YouTubeCommand extends commando.Command { q: videoToSearch, key: config.youtubekey }); - //if (!response.body.items[0].snippet) return message.say(':x: Error! No Video Found!'); let data = response.body.items[0]; const embed = new Discord.RichEmbed() .setColor(0xDD2825)