1.0.1 • Published 3 years ago
rscommands-djs v1.0.1
RSCommands
Simple DiscordJS command handler
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