Discordjsbot-commands
A npm package to simplify making discord.js bots!
Some features of this package -
  • GET RANDOM MEME
  • GET RANDOM ADVICE
  • GET RANDOM NEKO IMAGE
  • GET RANDOM JOKES
  • GET RANDOM QUOTE
  • GET RANDOM FACT
  • GET RANDOM ANIMAL IMAGES & FACTS

Setting up the package

Initializing the package is very easy and similar to many other packages
1
const discord = require("discord.js")
2
const client = new discord.Client()
3
const { Commands } = require("discordjsbot-commands")
4
const commands = new Commands();
Copied!
Once you're done with setting it up, you can easily make commands like the following example -
1
const discord = require("discord.js")
2
const client = new discord.Client()
3
const { Commands } = require("discordjsbot-commands")
4
const commands = new Commands();
5
​
6
client.on("message", async(message) => {
7
if(message.content === "!meme") {
8
let data = await commands.getMeme()
9
message.channel.send(data)
10
}
11
})
Copied!
And its just that easy! A working meme command in seconds.
Last modified 1yr ago
Copy link