Change to process.env

This commit is contained in:
Daniel Odendahl Jr
2017-08-13 01:33:56 +00:00
parent e75251b3f9
commit 71c9691419
23 changed files with 46 additions and 248 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const snekfetch = require('snekfetch');
const { wordnikKey } = require('../../config');
const { WORDNIK_KEY } = process.env;
module.exports = class DefineCommand extends Command {
constructor(client) {
@@ -30,7 +30,7 @@ module.exports = class DefineCommand extends Command {
limit: 1,
includeRelated: false,
useCanonical: false,
api_key: wordnikKey
api_key: WORDNIK_KEY
});
if (!body.length) return msg.say('No Results.');
const embed = new MessageEmbed()