Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dankmemer-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dankmemer-wrapper

A API wrapper for the Dank Memer API.

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by175%
Maintainers
1
Weekly downloads
 
Created
Source

The Dank Memer api wrapper for the Dank Memer API.

Install

```npm i --save dankmemer-wrapper``

Usage

```js const DankMemer = require("thedankmemer"); const memer = new DankMemer("Your API Token Goes Here"); Example const DankMemer = require("thedankmemer"); const memer = new DankMemer("Put your dank memer api key"); const Discord = require("discord.js"); const client = new Discord.Client();

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");```

Get API Key

Go to dankmemer.services/dashboard and request for a API key.

Functions

abandon aborted affect airpods america armor balloon bed bongocat boo brain brazzers byemom cancer changemymind cheating citation communism confusedcat corporate crab cry dab dank deepfry delete disability doglemon door egg excuseme expanddong facts failure fakenews fedora floor fuck garfield gay goggles hitler humansgood inator invert ipad jail justpretending kimborder knowyourlocation kowalski laid lick madethis magik master meme note nothing ohno piccolo plan presentation quote radialblur rip salty satan savehumanity screams shit sickban slap slapsroof sneakyfox spank stroke surprised sword thesearch trash tiger trigger tweet ugly unpopular violence violentsparks vr walking wanted wrap whodidthis whothisis yomomma youtube

Ratelimits

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.

Keywords

FAQs

Package last updated on 03 Nov 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc