This is a bot that started the development as a study, now became a hobby project, hope you enjoy too.
Make sure you have Node.js installed (last version revised: v22.20.0).
- Create an
.env
file into the project, using the file.env.example
as a template.- [
APP_ID
|string
]- Application Id available on the Discord Developer Portal
- [
DISCORD_TOKEN
|string
]- Client Secret available on the Discord Developer Portal
- [
MONGODB_URI
|string
]- Connection string of your MongoDB database
- [
- Create an
config.json
file into the project, using the fileconfig.json.example
as a template.- [
testServer
|string
]- tells the bot the id of the
test server
(filling this field will make the bot register the command ONLY into the test server, if you don't want this, just keep as an empty string).
- tells the bot the id of the
- [
devs
|Array<string>
]- specify to the bot who is the
developer
, important if you want to create debug / experimental commands.
- specify to the bot who is the
- [
- Inside the main folder, run the command
node src/index.js
or justnpm start
.
Name of the command that will be registered on the bot.
Description of the command explaining what it can do.
The logic structure of the command that will be executed.
Recursive array to add subcommands / fields to the command.
Saying that only the developer
of the bot can run the command.
Specifying to the bot that the command only should run inside a test server
.
Marking the command to be removed from discord's command cache (recommended if you want to remove the feature from the bot).
List of permissions the user
need to have to run the command.
List of permissions the bot
need to have to run the command.