# random-discord

> Random Image & Others For Discord

Latest version **1.0.2-1** (published 2020-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install random-discord
pnpm add random-discord
yarn add random-discord
bun add random-discord
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2-1 |
| Published | 2020-10-22 |
| First published | 2020-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | NotMarx |
| Maintainers | inplex |
| Keywords | random, neko, kpop, advice, memes, fun, discord |

## Links

- npm: https://www.npmjs.com/package/random-discord
- npm.io page: https://npm.io/package/random-discord

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Recent versions

- 1.0.2-1 (latest) — 2020-10-22
- 1.0.1 — 2020-10-14
- 1.0.0 — 2020-10-14

## README

### RANDOM IMAGE FOR DISCORD

Below are the things that this package offers you.

  - GET RANDOM ADVICE
  - GET RANDOM NEKO IMAGE
  - GET RANDOM ANIME IMAGE(BASED ON ACTION)
  - GET RANDOM MEME
  - GET RANDOM JOKES
  - GET RANDOM STING(BASED ON GIVEN NUMBER)
  - GET RANDOM KPOP SINGER
  
  
  
# SETUP
```js
const discord = require("discord.js")
const client = new discord.Client()
const { Random } = require("random-discord")
const random = new Random();
const TOKEN = "YOUR-TOKEN"

client.on("ready", () => {
  console.log("I'm Online")
})

client.on("message", async message => {
  if(message.content === "!memes") {
    let data = await random.getMeme()
    message.channel.send(data)
  }
})


client.login("TOKEN")

```
![](https://cdn.discordapp.com/attachments/756038269174677544/765753270039347230/unknown.png)


## DOCUMENTATION

**getMeme()**: Provieds You the JSON embed with meme image and title.
```js
  let data = await random.getMeme()
    message.channel.send(data)
```

**getAdvice()**: Provieds You a random advice.
```js
  let data = await random.getAdvice()
    message.channel.send(data)
```

**getString(number)**: Provieds You a random string, length will be based on the number you gave.
```js
 let data = await random.getString(6)
    message.channel.send(data)
```

**getNeko()**: Provieds You a random neko image.
```js
 let data = await random.getNeko()
    message.channel.send(data)
```

**getJoke()**: Provieds You a Random Funny Joke.
```js
 let data = await random.getJoke()
    message.channel.send(data)
```

**getAnimeImgURL(type)**: Provied you a random image url of anime(based on action), availabe actions are "pat", "hug", "waifu", "cry", "kiss", "slap", "smug", "punch"
```js
 let data = await random.getAnimeImgURL("cry")
    message.channel.send(data)
```

**getKpop()**: Provide you a Random Kpop singer image and name.
```js
let data = await random.getKpop()
    message.channel.send(data)
```




## WHAT IS RANDOM-DISCORD

Random-Discord is a NPM Package that allows you to send some random image on Discord. Feeling need help? Feel free to join our [Discord Server](https://discord.gg/78RyqJK).

---
_Source: https://npm.io/package/random-discord · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
