Fix some more

This commit is contained in:
Daniel Odendahl Jr
2017-04-02 03:11:24 +00:00
parent 9a017fa209
commit 8091b1229a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class WattpadCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log(`[Command] ${message.content}`);
let queryBook = encodeURI(args.book);
let queryBook = args.book;
try {
let response = await request
.get('https://api.wattpad.com:443/v4/stories')
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = class YouTubeCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log(`[Command] ${message.content}`);
let videoToSearch = encodeURI(args.video);
let videoToSearch = args.video;
try {
let response = await request
.get('https://www.googleapis.com/youtube/v3/search')