dankmemer-wrapper
v2.0.0
Published
A API wrapper for the Dank Memer API.
Downloads
14
Maintainers
Readme
The Dank Memer api wrapper for the Dank Memer API.
client.on("ready", () => {
console.log(Bot is online!
);
});
client.on("message", async(message) => { if (!message.guild || message.author.bot) return; if (message.content === "!ipad") { let avatar1 = message.author.avatarURL({ dynamic: false, format: 'png' }); let image = await memer.ipad(avatar1) let attachment = new Discord.MessageAttachment(image, "ipad.png"); return message.channel.send(attachment);
} })
client.login("Discord bot token here");
<h1>Get API Key</h1>
Go to [Here](https://dankmemer.services/dashboard) and request for a API key.
<h1>Functions</h1>
- abandon
- aborted
- affect
- airpods
- america
- armor
- balloon
- bed
- bongocat
- boo
<b>100's More</b>
<h1>Ratelimits</h1>
Each endpoint has it's own ratelimit, which you can find in it's documentation. Additionally, the API has a global ratelimit of 300 requests per minute.
The ratelimits for the endpoint are defined with X-RateLimit-:key, while the global ratelimit is defined with X-Global-RateLimit-:key. When the global ratelimit is hit, the body will contain an additional JSON key "global" which will be set to true.