Package Exports
- random-discord
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (random-discord) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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
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")

DOCUMENTATION
getMeme(): Provieds You the JSON embed with meme image and title.
let data = await random.getMeme()
message.channel.send(data)getAdvice(): Provieds You a random advice.
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.
let data = await random.getString(6)
message.channel.send(data)getNeko(): Provieds You a random neko image.
let data = await random.getNeko()
message.channel.send(data)getJoke(): Provieds You a Random Funny Joke.
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"
let data = await random.getAnimeImgURL("cry")
message.channel.send(data)getKpop(): Provide you a Random Kpop singer image and name.
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.