Skip to content

Latest commit

History

History
54 lines (42 loc) 路 2.08 KB

CONTRIBUTING.md

File metadata and controls

54 lines (42 loc) 路 2.08 KB

Contributing to Utility Bot

Hello there! Thank you for considering contributing to the Utility Bot project, part of the NestJS-Discord organization. We're thrilled to have you here!

How to Contribute

  1. Fork the repository
  2. Clone the repository to your local machine
  3. Install dependencies using make install
  4. Make your changes
  5. Run tests and ensure they pass with go test -v ./...
  6. Ensure Markdown content in the configuration have proper length with go run . validate:content
  7. Push your changes to your fork
  8. Create a pull request

We welcome all contributions, including bug reports, feature requests, and code improvements. So let's build something great together!

Happy coding! 馃殌

Running the Discord bot in debug mode

# go run . discord:run --debug
make run

Build

To build this project, you must install Golang in your system and execute the following command.

make install
make build

Notes

  • Slash commands
    • Discord will sort commands alphabetically, regardless of their initial order in the config.yml file.
    • Users will instantly see commands once registered because this project uses guild commands instead of global ones.
    • Discord has a global rate limit of 200 application command creations per day, per guild.
    • The bot will automatically register slash commands on startup.
    • Registered commands can be removed by the discord:clean CLI command.
    • Only one sub-command level is supported; for example, /foo bar is valid.
  • Markdown content
    • The content of each file can be up to 2000 characters.
    • The bot caches the content after execution (restarting is required to apply the changes).
  • Moderators
    • They can be defined by their unique Discord ID in the config.yml file.
    • They bypass rate-limit policies.
    • They can execute protected commands in the config.yml file.