From 8c435855e647ee7aef8578e253caf91fe44c67cc Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 16 Apr 2020 04:56:37 -0700 Subject: The Purification, v7.0.0 add: - aesthetic, oddcase, stretch, surreal - culturedtext - dogeify - howify - insult - lorem - spongebob Other Stuff: - many refactoring --- src/commands/utility/btc.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands/utility/btc.ts') 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()); -- cgit v1.2.3