Switch to config.json, Eliz don't peek at my keys

This commit is contained in:
Daniel Odendahl Jr
2017-07-04 13:56:16 +00:00
parent 58807cd222
commit 94651c0798
18 changed files with 41 additions and 41 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
const Command = require('../../structures/Command');
const snekfetch = require('snekfetch');
const { WEBHOOK_URL } = process.env;
const { webhookURL } = require('../../config');
module.exports = class WebhookCommand extends Command {
constructor(client) {
@@ -9,7 +9,7 @@ module.exports = class WebhookCommand extends Command {
aliases: ['rin', 'rin-say'],
group: 'text-edit',
memberName: 'webhook',
description: 'Posts a message to the webhook defined in your `process.env`.',
description: 'Posts a message to the webhook defined in your `config.json`.',
guildOnly: true,
ownerOnly: true,
clientPermissions: ['MANAGE_MESSAGES'],
@@ -27,7 +27,7 @@ module.exports = class WebhookCommand extends Command {
const { content } = args;
msg.delete();
await snekfetch
.post(WEBHOOK_URL)
.post(webhookURL)
.send({ content });
return null;
}