This commit is contained in:
Dragon Fire
2021-04-23 08:38:19 -04:00
parent a29adc2cb5
commit 68aab28408
+1 -1
View File
@@ -52,7 +52,7 @@ module.exports = class CurrencyCommand extends Command {
try {
const rate = await this.fetchRate(base, target);
const baseName = this.currencies[base];
const targetName = this.currencies[target]
const targetName = this.currencies[target];
return msg.say(`${formatNumber(amount)} ${baseName} is ${formatNumber(amount * rate)} ${targetName}.`);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);