Code Improvements, NSFW Anime Command

This commit is contained in:
Daniel Odendahl Jr
2017-05-08 23:09:37 +00:00
parent 9db1d8f6e0
commit 448c137b38
23 changed files with 77 additions and 32 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
const { Command } = require('discord.js-commando');
const request = require('superagent');
const { WEBHOOK_URL } = process.env;
module.exports = class WebhookCommand extends Command {
constructor(client) {
@@ -31,7 +32,7 @@ module.exports = class WebhookCommand extends Command {
try {
msg.delete();
await request
.post(process.env.WEBHOOK_URL)
.post(WEBHOOK_URL)
.send({ content });
return null;
} catch (err) {