diff --git a/commands/random/currency.js b/commands/random/currency.js index 7cd7369d..4f5131b8 100644 --- a/commands/random/currency.js +++ b/commands/random/currency.js @@ -31,7 +31,7 @@ module.exports = class CurrencyCommand extends Command { return true; return `${to} is not a valid currency code. Use \`help currency\` to view a list of codes.`; }, - parse: code => code.toUpperCase() + parse: to => to.toUpperCase() }, { key: 'amount', @@ -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(`${amount} ${base} is ${amount} ${base}.`); + if(base === to) return msg.say(`${amount} ${base} is ${amount} ${to}.`); try { const { body } = await request .get(`http://api.fixer.io/latest?base=${base}&symbols=${to}`); diff --git a/package.json b/package.json index 00cdbbdc..9d7d70bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "18.2.0", + "version": "18.2.1", "description": "A Discord Bot", "main": "shardingmanager.js", "scripts": {