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

discord-fun

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-fun

Below are the things that this package offers you.

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

DISCORD FUN

Below are the things that this package offers you.

  • GET RANDOM ADVICE

  • GET RANDOM NEKO IMAGE

  • GET RANDOM MEME

  • GET RANDOM JOKES

  • GET RANDOM DARKJOKE

  • GET RANDOM STRING(BASED ON GIVEN NUMBER)

  • GET RANDOM FACT

SETUP

const discord = require("discord.js")
const client = new discord.Client()
const { discordfun } = require("discord-fun")
const discordfun = new discordfun();


client.on("ready", () => {
  console.log(`Logged In As ${client.user.tag}`)
})

client.on("message", async message => {
  if(message.content === "meme") {
    let data = await discordfun.Meme()
    message.channel.send(data)
  }
})


client.login("TOKEN")

DOCUMENTATION

Meme(): Provieds You the JSON embed with meme image and title.

  let data = await discordfun.Meme()
    message.channel.send(data)

Advice(): Provieds You a random advice.

  let data = await discordfun.Advice()
    message.channel.send(data)

String(number): Provieds You a random string, length will be based on the number you gave.

 let data = await discordfun.String(6)
    message.channel.send(data)

Neko(): Provieds You a random neko image.

 let data = await discordfun.Neko()
    message.channel.send(data)

Joke(): Provieds You a Random Funny Joke.

 let data = await discordfun.Joke()
    message.channel.send(data)

DarkJoke(): Provieds You a Random Dark Joke.

 let data = await discordfun.DarkJoke()
    message.channel.send(data)

Fact(): Provides you a random fact.

let data = await discordfun.Fact();
    message.channel.send(data);

FAQs

Package last updated on 10 Jan 2021

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