Tsubaki, Native Image Reading

This commit is contained in:
Daniel Odendahl Jr
2017-05-12 20:25:17 +00:00
parent c097781db4
commit 13c0acdb59
37 changed files with 59 additions and 74 deletions
+1 -2
View File
@@ -44,8 +44,7 @@ module.exports = class CurrencyCommand extends Command {
const { base, to, amount } = args;
if (base === to) return msg.say(`Converting ${base} to ${to} is the same value, dummy.`);
try {
const { body } = await request
.get(`http://api.fixer.io/latest?base=${base}&symbols=${to}`);
const { body } = await request.get(`http://api.fixer.io/latest?base=${base}&symbols=${to}`);
const rate = body.rates[to];
return msg.say(`${amount} ${base} is ${amount * rate} ${to}.`);
} catch (err) {