Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.4 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.4 KB

Nodemon-discord - discord bot for nodemon monitoring service

Options / Configuration parameters

Any option can be set in a CLI parameter or environment variable form. The CLI form has higher priority than the environment variable form. To set an option as a CLI parameter use kebab-case option name. To do the same as environment variable form use UPPER_SNAKE_CASE option name.

List of supported options in kebab-case form

  • -bind (string) — Local network address to bind the HTTP API of the service on.
  • -development (bool) — Development mode. It is used for zap logger.
  • -discord-bot-token (string) — The secret token used to authenticate the bot in Discord.
  • -discord-chat-id (string) — discord chat ID to send alerts through a specific chat
  • -log-level (string) — Logging level. Supported levels: DEBUG, INFO, WARN, ERROR, FATAL. Default logging level is INFO. (default "INFO")
  • -nats-msg-url (string) — NATS server URL for messaging (default "nats://127.0.0.1:4222"). Used by the bot to subscribe to alerts generated by the monitoring service and for communication between the monitoring and bot services.

Build requirements

  • Make utility
  • Golang toolchain

Docker

To build docker image for this service execute these commands from the root of the project:

  docker build -t nodemon-discord -f ./Dockerfile-nodemon-discord .