From 4656953858193ead6f954b6c87f6f71761c84234 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 7 Jun 2020 22:05:20 -0400 Subject: [PATCH] Fix Advice Slip ID --- commands/random-res/advice.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/random-res/advice.js b/commands/random-res/advice.js index c06898fa..5a0e97e1 100644 --- a/commands/random-res/advice.js +++ b/commands/random-res/advice.js @@ -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!`); } diff --git a/package.json b/package.json index 45243833..6040097a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.5.1", + "version": "116.5.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {