slash-commands
slash-commands copied to clipboard
slash commands handler to make your bot support slash commands.
slash-command by Fnr#0017
slash commands handler to make your bot support slash commands features.
Need help? join discord server Invite Link
Note: Node.js 16.6.0 or newer is required.
Installation
npm install
Make sure to check Slash Commands Guide
You need to rename example_config.json file to config.json and fill the info.
- config.json
{
"token": "YOUR_BOT_TOKEN",
"serverID": "YOUR_SERVER_ID",
"botID": "YOUR_BOT_ID",
"log_channel_id": "Channel-id",
"prefix": "YOUR_PREFIX",
"autoRoleId": "ROLE ID",
"ownersID": ["Id_1", "id_2"]
}
- Note: Prefix is not required in
config.jsonyou just need it if you want to create commands with prefix.