Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
dankmemer
Advanced tools
Weekly downloads
Readme
An API wrapper for Dank Memer API.
npm i --save dankmemer.js
const DankMemer = require("dankmemer");
const memer = new DankMemer("Your API Token Goes Here");
const DankMemer = require("dankmemer");
const memer = new DankMemer("Dank Memer Api Key");
const Discord = require("discord.js");
const client = new Discord.Client();
client.on("ready", () => {
console.log(`Memer is online!`);
});
client.on("message", async(message) => {
if (!message.guild || message.author.bot) return;
if (message.content === "spank") {
let userone = message.author.displayAvatarURL;
let usertwo = client.user.displayAvatarURL;
let image = await memer.spank(userone, usertwo);
const attachment = new Discord.Attachment(image, "spank.png")
return message.channel.send(attachment);
}
})
client.login("Discord Bot Token");
async function spank(avatar1, avatar2) {
let img = await memer.spank(avatar1, avatar2);
message.channel.send({ file: img });
}
spank();
memer.spank(avatar1, avatar2).then(img => {
message.channel.send({ file: img });
})
Go to dankmemer.services/dashboard and request for API key.
Rate Limits 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.
FAQs
An API wrapper for Dank Memer API.
The npm package dankmemer receives a total of 2 weekly downloads. As such, dankmemer popularity was classified as not popular.
We found that dankmemer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.