mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Fix
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = class GelbooruCommand extends Command {
|
|||||||
if (!parsed.post || !parsed.post.length) return msg.say('Could not find any results.');
|
if (!parsed.post || !parsed.post.length) return msg.say('Could not find any results.');
|
||||||
return msg.say(stripIndents`
|
return msg.say(stripIndents`
|
||||||
Result for ${query}:
|
Result for ${query}:
|
||||||
https:${parsed.post[Math.floor(Math.random() * parsed.post.length)]._attributes.file_url}
|
${parsed.post[Math.floor(Math.random() * parsed.post.length)]._attributes.file_url}
|
||||||
`);
|
`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user