mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Typo
This commit is contained in:
@@ -2,7 +2,7 @@ const Command = require('../../structures/Command');
|
|||||||
const { MessageEmbed } = require('discord.js');
|
const { MessageEmbed } = require('discord.js');
|
||||||
const snekfetch = require('snekfetch');
|
const snekfetch = require('snekfetch');
|
||||||
const moment = require('moment');
|
const moment = require('moment');
|
||||||
const { ALHPA_VANTAGE_KEY } = process.env;
|
const { ALPHA_VANTAGE_KEY } = process.env;
|
||||||
|
|
||||||
module.exports = class StocksCommand extends Command {
|
module.exports = class StocksCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -31,9 +31,9 @@ module.exports = class StocksCommand extends Command {
|
|||||||
function: 'TIME_SERIES_INTRADAY',
|
function: 'TIME_SERIES_INTRADAY',
|
||||||
symbol,
|
symbol,
|
||||||
interval: '1min',
|
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 data = body['Time Series (1min)'][Object.keys(body['Time Series (1min)'])[0]];
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor()
|
.setColor()
|
||||||
|
|||||||
Reference in New Issue
Block a user