mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
Fix
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = class BoredomCommand extends Command {
|
|||||||
async run(msg) {
|
async run(msg) {
|
||||||
try {
|
try {
|
||||||
const { body } = await request.get('https://www.boredapi.com/api/activity/');
|
const { body } = await request.get('https://www.boredapi.com/api/activity/');
|
||||||
return msg.say(`${body.activity} (${body.type}})`);
|
return msg.say(`${body.activity} (${body.type})`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user