mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
Lots of small changes
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = class BoredomCommand extends Command {
|
||||
credit: [
|
||||
{
|
||||
name: 'Bored API',
|
||||
url: 'https://www.boredapi.com/',
|
||||
url: 'https://bored.api.lewagon.com/',
|
||||
reason: 'API'
|
||||
}
|
||||
]
|
||||
@@ -19,7 +19,7 @@ module.exports = class BoredomCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg) {
|
||||
const { body } = await request.get('https://www.boredapi.com/api/activity/');
|
||||
const { body } = await request.get('https://bored.api.lewagon.com/api/activity/');
|
||||
return msg.say(`${body.activity} (${body.type})`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user