This commit is contained in:
Daniel Odendahl Jr
2017-05-16 11:32:56 +00:00
parent 2a2ed0c67f
commit 1d0584e549
+2 -2
View File
@@ -1,7 +1,7 @@
const { Command } = require('discord.js-commando');
const { RichEmbed } = require('discord.js');
const snekfetch = require('snekfetch');
const { DISCORD_BOTS_KEY } = process.env;
const { DBOTS_KEY } = process.env;
module.exports = class BotSearchCommand extends Command {
constructor(client) {
@@ -28,7 +28,7 @@ module.exports = class BotSearchCommand extends Command {
try {
const { body } = await snekfetch
.get(`https://bots.discord.pw/api/bots/${bot.id}`)
.set('Authorization', DISCORD_BOTS_KEY);
.set('Authorization', DBOTS_KEY);
const embed = new RichEmbed()
.setColor(0x9797FF)
.setAuthor('Discord Bots', 'https://i.imgur.com/lrKYBQi.jpg')