diff options
| author | 8cy <[email protected]> | 2020-04-16 04:56:37 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-16 04:56:37 -0700 |
| commit | 8c435855e647ee7aef8578e253caf91fe44c67cc (patch) | |
| tree | ae0bb59de10ecec5ca2fc01dfa9190efd1f177ab /src/commands/utility/btc.ts | |
| parent | no longer hosting ws, v6.0.4 (diff) | |
| download | dep-core-8c435855e647ee7aef8578e253caf91fe44c67cc.tar.xz dep-core-8c435855e647ee7aef8578e253caf91fe44c67cc.zip | |
The Purification, v7.0.0
add:
- aesthetic, oddcase, stretch, surreal
- culturedtext
- dogeify
- howify
- insult
- lorem
- spongebob
Other Stuff:
- many refactoring
Diffstat (limited to 'src/commands/utility/btc.ts')
| -rw-r--r-- | src/commands/utility/btc.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/utility/btc.ts b/src/commands/utility/btc.ts index 2845194..c0c14f3 100644 --- a/src/commands/utility/btc.ts +++ b/src/commands/utility/btc.ts @@ -1,4 +1,4 @@ -import { Command } from 'discord.js-commando'; +import { Command, CommandoMessage } from 'discord.js-commando'; import emoji from 'emoji-random'; import btc from 'btc-value'; btc.setApiKey('a43419ce-fc59-4951-8af9-20c5e36ef73f'); @@ -14,7 +14,7 @@ module.exports = class BTCUtility extends Command { args: [ { key: 'currencyName', - prompt: 'What currency could you like to see it in? (USD, AUD, CAD)', + prompt: 'What currency could you like to see it in? (USD, AUD, CAD, etc.)', type: 'string' } ], @@ -27,7 +27,7 @@ module.exports = class BTCUtility extends Command { clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] }); } - run(msg: Message, { currencyName }) { + 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()); |