mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
Fix Advice Slip ID
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = class AdviceCommand extends Command {
|
||||
try {
|
||||
const { text } = await request.get('http://api.adviceslip.com/advice');
|
||||
const body = JSON.parse(text);
|
||||
return msg.say(`${body.slip.advice} (#${body.slip.slip_id})`);
|
||||
return msg.say(`${body.slip.advice} (#${body.slip.id})`);
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.5.1",
|
||||
"version": "116.5.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user