This is fine

This commit is contained in:
Daniel Odendahl Jr
2017-05-05 14:14:42 +00:00
parent b9925444ad
commit aa6e24cfa3
+1 -1
View File
@@ -44,7 +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.');
if(base === to) return msg.say(`${amount} ${base} is ${amount} ${base}.`);
try {
const { body } = await request
.get(`http://api.fixer.io/latest?base=${base}`);