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,5 +1,5 @@
const Command = require('../../structures/Command');
const snekfetch = require('snekfetch');
const request = require('superagent');
module.exports = class CreateQRCodeCommand extends Command {
constructor(client) {
@@ -21,7 +21,7 @@ module.exports = class CreateQRCodeCommand extends Command {
async run(msg, { text }) {
try {
const { body } = await snekfetch
const { body } = await request
.get('https://api.qrserver.com/v1/create-qr-code/')
.query({ data: text });
return msg.say({ files: [{ attachment: body, name: 'qr-code.png' }] });