From b9925444ad5faa55e7df6985170031ee8e44b4cf Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 5 May 2017 14:11:30 +0000 Subject: [PATCH] Mneh --- commands/random/currency.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random/currency.js b/commands/random/currency.js index 716f7429..f37069c6 100644 --- a/commands/random/currency.js +++ b/commands/random/currency.js @@ -48,7 +48,7 @@ module.exports = class CurrencyCommand extends Command { try { const { body } = await request .get(`http://api.fixer.io/latest?base=${base}`); - const rate = body[to]; + const rate = body.rates[to]; const converted = rate * amount; return msg.say(`${amount} ${base} is ${converted} ${to}.`); } catch(err) {