summaryrefslogtreecommitdiff
path: root/src/commands/crypto
diff options
context:
space:
mode:
author8cy <[email protected]>2020-05-07 14:53:02 -0700
committer8cy <[email protected]>2020-05-07 14:53:02 -0700
commitd39052e139057b8303d79bb4192f677879797c92 (patch)
tree650c50f569f19f114be01ebe3dbf0aabfd6b54bc /src/commands/crypto
parentremove this bc this is unused and outdated (diff)
downloaddep-core-d39052e139057b8303d79bb4192f677879797c92.tar.xz
dep-core-d39052e139057b8303d79bb4192f677879797c92.zip
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
Diffstat (limited to 'src/commands/crypto')
-rw-r--r--src/commands/crypto/btc.ts5
-rw-r--r--src/commands/crypto/btcchange.ts3
2 files changed, 5 insertions, 3 deletions
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
diff --git a/src/commands/crypto/btcchange.ts b/src/commands/crypto/btcchange.ts
index 4218c31..f0b05b0 100644
--- a/src/commands/crypto/btcchange.ts
+++ b/src/commands/crypto/btcchange.ts
@@ -15,7 +15,8 @@ module.exports = class BTCChangeCrypto extends Command {
{
key: 'timeAmount',
prompt: 'What time range do you want to check the fluction amount in? (day, hour, week)',
- type: 'string'
+ type: 'string',
+ default: 'USD'
}
],
throttling: {