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",