Fix Advice Slip ID

This commit is contained in:
Dragon Fire
2020-06-07 22:05:20 -04:00
parent cada511006
commit 4656953858
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "116.5.1",
"version": "116.5.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {