mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = class BoredomCommand extends Command {
|
||||
async run(msg) {
|
||||
try {
|
||||
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) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user