This is a bot that started the development as a study, now became a hobby project, hope you enjoy too.
- Create an
.envfile into the project, using the file.env.exampleas 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.jsonfile into the project, using the fileconfig.json.exampleas 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
- [
emojis|object]- specify the name and the id of the emojis that you want to use in the bot.
- [
Make sure you have Node.js installed (last version revised: v24.13.0).
Inside the main folder, run the command node src/index.js or just npm start.
Inside the main folder, run the command to build the Dockerfile:
docker build -t eikkos-discord-bot .
after that, create a new container with the command:
docker run --name bot -p 80:80 eikkos-discord-bot
your container must be already running, you can manage the bot execution with the commands:
docker start bot
docker stop bot
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.