mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Revert cat fact
This commit is contained in:
@@ -15,8 +15,9 @@ module.exports = class CatFactCommand extends Command {
|
|||||||
async run(msg) {
|
async run(msg) {
|
||||||
try {
|
try {
|
||||||
const { body } = await snekfetch
|
const { body } = await snekfetch
|
||||||
.get('https://fact.birb.pw/api/v1/cat');
|
.get('https://catfact.ninja/fact')
|
||||||
return msg.say(body.string);
|
.query({ max_length: 2000 });
|
||||||
|
return msg.say(body.fact);
|
||||||
} 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