From 7a1e0be74fc5b2f652122a260e9c2e0ea79cb2a7 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 22 Aug 2017 22:44:39 +0000 Subject: [PATCH] Typo --- commands/random/stocks.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/random/stocks.js b/commands/random/stocks.js index 4246ebca..02ad12da 100644 --- a/commands/random/stocks.js +++ b/commands/random/stocks.js @@ -2,7 +2,7 @@ const Command = require('../../structures/Command'); const { MessageEmbed } = require('discord.js'); const snekfetch = require('snekfetch'); const moment = require('moment'); -const { ALHPA_VANTAGE_KEY } = process.env; +const { ALPHA_VANTAGE_KEY } = process.env; module.exports = class StocksCommand extends Command { constructor(client) { @@ -31,9 +31,9 @@ module.exports = class StocksCommand extends Command { function: 'TIME_SERIES_INTRADAY', symbol, interval: '1min', - apikey: ALHPA_VANTAGE_KEY + apikey: ALPHA_VANTAGE_KEY }); - if (body['Error Message']) return msg.say(body['Error Message']); + if (body['Error Message']) return msg.say('Invalid Symbol.'); const data = body['Time Series (1min)'][Object.keys(body['Time Series (1min)'])[0]]; const embed = new MessageEmbed() .setColor()