This commit is contained in:
Daniel Odendahl Jr
2017-08-22 22:42:55 +00:00
parent 2a0ddcd31c
commit 97e9b14c9d
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class StocksCommand extends Command {
interval: '1min',
apikey: ALHPA_VANTAGE_KEY
});
if (body['Error Message']) return msg.say('Invalid Symbol.');
if (body['Error Message']) return msg.say(body['Error Message']);
const data = body['Time Series (1min)'][Object.keys(body['Time Series (1min)'])[0]];
const embed = new MessageEmbed()
.setColor()