snekfetch -> superagent

This commit is contained in:
Daniel Odendahl Jr
2018-06-07 16:01:27 +00:00
parent 619c73de19
commit 8725e348be
133 changed files with 316 additions and 319 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const snekfetch = require('snekfetch');
const request = require('superagent');
const { STACKOVERFLOW_KEY } = process.env;
module.exports = class StackOverflowCommand extends Command {
@@ -24,7 +24,7 @@ module.exports = class StackOverflowCommand extends Command {
async run(msg, { query }) {
try {
const { body } = await snekfetch
const { body } = await request
.get('http://api.stackexchange.com/2.2/search/advanced')
.query({
page: 1,