This commit is contained in:
Daniel Odendahl Jr
2017-05-05 14:05:26 +00:00
parent 53f4ab8817
commit 1112ea9294
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -44,6 +44,7 @@ module.exports = class CurrencyCommand extends Command {
async run(msg, args) {
const { base, to, amount } = args;
if(base === to) return msg.say('You cannot convert to the same currency as your base.');
try {
const { body } = await request
.get(`http://api.fixer.io/latest?base=${base}`);
+1
View File
@@ -1,5 +1,6 @@
[
"AUD",
"USD",
"BGN",
"BRL",
"CAD",