mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
I shouldn't have to do this
This commit is contained in:
@@ -51,8 +51,8 @@ module.exports = class MemeCommand extends Command {
|
||||
const { type, top, bottom } = args;
|
||||
try {
|
||||
const { body } = await snekfetch
|
||||
.get(`https://memegen.link/api/templates/${type}/${top}/${bottom}`);
|
||||
return msg.say(body.masked);
|
||||
.get(`https://memegen.link/api/templates/${type}/${top}/${bottom}`, { followRedirects: true });
|
||||
return msg.say(body.direct.masked);
|
||||
} catch (err) {
|
||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user