Var name change

This commit is contained in:
Daniel Odendahl Jr
2017-05-05 17:42:49 +00:00
parent 1d176ab261
commit d8a773958d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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}`);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "18.2.0",
"version": "18.2.1",
"description": "A Discord Bot",
"main": "shardingmanager.js",
"scripts": {