nyxx-discord / running_on_dart

Multipurpose bot, primarily built for developing nyxx.
GNU General Public License v3.0
15 stars 2 forks source link
dart dart2 dartlang discord discord-bot postgres postgresql pub

Running on Dart

This is repo for a multipurpose bot, primarily built for developing nyxx - Discord integration for Dart language.

Running

The following environment variables are required to be set for Running on Dart to run:

Additionally, if ROD_DEV is true, the following environment variables must also be set:

Standalone

  1. Set all the environment variables above.
  2. Run dart pub get to install dependencies
  3. Run dart run nyxx_commands:compile -o bot.dart to generate an executable.
  4. Run the created bot.exe file.

With Docker

  1. Set all the above environment variables in a .env file in the project root.
  2. Run docker-compose up to run the bot.

With Makefile

  1. Set all the above environment variables in a .env file in the project root.
  2. Run make run to run the bot.