mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix some more
This commit is contained in:
@@ -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;
|
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
|
||||||
}
|
}
|
||||||
console.log(`[Command] ${message.content}`);
|
console.log(`[Command] ${message.content}`);
|
||||||
let queryBook = encodeURI(args.book);
|
let queryBook = args.book;
|
||||||
try {
|
try {
|
||||||
let response = await request
|
let response = await request
|
||||||
.get('https://api.wattpad.com:443/v4/stories')
|
.get('https://api.wattpad.com:443/v4/stories')
|
||||||
|
|||||||
@@ -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;
|
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
|
||||||
}
|
}
|
||||||
console.log(`[Command] ${message.content}`);
|
console.log(`[Command] ${message.content}`);
|
||||||
let videoToSearch = encodeURI(args.video);
|
let videoToSearch = args.video;
|
||||||
try {
|
try {
|
||||||
let response = await request
|
let response = await request
|
||||||
.get('https://www.googleapis.com/youtube/v3/search')
|
.get('https://www.googleapis.com/youtube/v3/search')
|
||||||
|
|||||||
Reference in New Issue
Block a user