Added the 'crypto' command

This commit is contained in:
ION606
2022-08-18 16:29:47 -07:00
parent 62ea3ecec8
commit 3f2e9c6c53
5 changed files with 91 additions and 3 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ const { Modal, TextInputComponent, MessageActionRow, MessageButton, MessageEmbed
const dateFns = require('date-fns');
const { formatToTimeZone } = require('date-fns-timezone');
const Alpaca = require('@alpacahq/alpaca-trade-api');
const apiKeyId = require('../../config.json').alpKey;
const secretKey = require('../../config.json').alpSec;
const apiKeyId = process.env.alpKey || require('../../config.json').alpKey;
const secretKey = process.env.alpSec || require('../../config.json').alpSec;
const alpaca = new Alpaca({
keyId: apiKeyId,
secretKey: secretKey,