Move to snekfetch 🐍

This commit is contained in:
Daniel Odendahl Jr
2017-04-16 01:12:22 +00:00
parent 90d3e66e89
commit 8074fe51bd
36 changed files with 252 additions and 311 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const request = require('superagent');
const snekfetch = require('snekfetch');
module.exports = class WebhookCommand extends Command {
constructor(client) {
@@ -33,7 +33,7 @@ module.exports = class WebhookCommand extends Command {
const text = args.text;
try {
await message.delete();
await request
await snekfetch
.post(process.env.WEBHOOK_URL)
.send({
content: text