Added ancient (thanks to ioletsgo for the idea and the image collection)

This commit is contained in:
Essem 2021-07-30 12:07:57 -05:00
parent f77def1c0e
commit 5fa457958b
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 103 additions and 97 deletions

22
commands/fun/ancient.js Normal file
View file

@ -0,0 +1,22 @@
const fetch = require("node-fetch");
const Command = require("../../classes/command.js");
class AncientCommand extends Command {
async run() {
this.client.sendChannelTyping(this.message.channel.id);
const data = await fetch("https://projectlounge.pw/meme/", { redirect: "manual" });
return {
embed: {
color: 16711680,
image: {
url: data.headers.get("location")
}
}
};
}
static description = "Gets a random ancient meme";
static aliases = ["old", "oldmeme", "badmeme"];
}
module.exports = AncientCommand;