From d39052e139057b8303d79bb4192f677879797c92 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 7 May 2020 14:53:02 -0700 Subject: add cmd logging and join server logging to support server - add depreciated join cmd *lol* - fix some formatting in btc and add defaults - add zero two cmd - add fortnite alias to fortnitestats --- src/commands/crypto/btc.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/commands/crypto/btc.ts') diff --git a/src/commands/crypto/btc.ts b/src/commands/crypto/btc.ts index 5fd5f67..596b9e4 100644 --- a/src/commands/crypto/btc.ts +++ b/src/commands/crypto/btc.ts @@ -15,7 +15,8 @@ module.exports = class BTCCrypto extends Command { { key: 'currencyName', prompt: 'What currency could you like to see it in? (USD, AUD, CAD, etc.)', - type: 'string' + type: 'string', + default: 'USD' } ], examples: [ @@ -34,7 +35,7 @@ module.exports = class BTCCrypto extends Command { run(msg: CommandoMessage, { currencyName }) { currencyName = currencyName.toUpperCase(); btc({ isDecimal: true, currencyCode: currencyName }).then(value => { - msg.reply('The current price of *Bitcoin* in **' + currencyName + '** is **' + value + '**. ' + emoji.random()); + msg.reply(`The current price of *Bitcoin* is **${value} ${currencyName}**. ${emoji.random()}`); }); } }; \ No newline at end of file -- cgit v1.2.3