From 75acf66de92daa0484983b994e7162d9752c4d80 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 5 May 2017 14:20:48 +0000 Subject: [PATCH] Faster API Response --- 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 fb521415..7cd7369d 100644 --- a/commands/random/currency.js +++ b/commands/random/currency.js @@ -47,7 +47,7 @@ module.exports = class CurrencyCommand extends Command { if(base === to) return msg.say(`${amount} ${base} is ${amount} ${base}.`); try { const { body } = await request - .get(`http://api.fixer.io/latest?base=${base}`); + .get(`http://api.fixer.io/latest?base=${base}&symbols=${to}`); const rate = body.rates[to]; const converted = rate * amount; return msg.say(`${amount} ${base} is ${converted} ${to}.`);