1.0.1 • Published 3 years ago

rscommands-djs v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

RSCommands

Simple DiscordJS command handler

https://nodei.co/npm/express.png

Features

  • Very easy to use

  • Guild-Only, Author-Only features

  • Customizable messages

Example Index File

const discord = require("discord.js")
const client =  new discord.Client()
const rscommands = require("rscommands-djs")

client.on("ready", () => {

rscommands.setup(client, "commands"/*command folder name*/, {
prefix:  "!",
authorId:  "123456789", // For multiple ids type ["id","id"], Default: None
authorOnlyMessage:  "You dont have permission to run this command", 
guildOnlyMessage:  "You can only use this command in servers"
})

console.log("Ready!")

})

client.login("Bot Token")

Creating a Command

module.exports = {
	name: "ping", // For multiple names type ["ping","pong"]
	authorOnly: false, //Default: false
	guildOnly: true, //Default: false
	run: async(message, client, args) => {
	message.reply("Pong")
	}
}

Need help? Discord: Raisy#5670

1.0.1

3 years ago

1.0.0

3 years ago