Added ancient (thanks to ioletsgo for the idea and the image collection)
This commit is contained in:
parent
f77def1c0e
commit
5fa457958b
2 changed files with 103 additions and 97 deletions
22
commands/fun/ancient.js
Normal file
22
commands/fun/ancient.js
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue