From 1112ea9294472157452e0b3af3b6f1bb1ee89f10 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 5 May 2017 14:05:26 +0000 Subject: [PATCH] Meow --- commands/random/currency.js | 1 + commands/random/currencycodes.json | 1 + 2 files changed, 2 insertions(+) diff --git a/commands/random/currency.js b/commands/random/currency.js index f1f44d7b..1dfa0ed6 100644 --- a/commands/random/currency.js +++ b/commands/random/currency.js @@ -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}`); diff --git a/commands/random/currencycodes.json b/commands/random/currencycodes.json index 4b3f37a5..6e57fbf1 100644 --- a/commands/random/currencycodes.json +++ b/commands/random/currencycodes.json @@ -1,5 +1,6 @@ [ "AUD", + "USD", "BGN", "BRL", "CAD",