mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Revert cat fact
This commit is contained in:
@@ -15,8 +15,9 @@ module.exports = class CatFactCommand extends Command {
|
||||
async run(msg) {
|
||||
try {
|
||||
const { body } = await snekfetch
|
||||
.get('https://fact.birb.pw/api/v1/cat');
|
||||
return msg.say(body.string);
|
||||
.get('https://catfact.ninja/fact')
|
||||
.query({ max_length: 2000 });
|
||||
return msg.say(body.fact);
|
||||
} catch (err) {
|
||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user