/Universe-Travel-discord-bot

Official Source code of the discord bot for the community U*Travel (Docker + TS)

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

U*Travel Helper Discord

(readme in construction)

For the discord community U*Travel (Discord Server) U*Travel Community is a community base on astronomy and science. This bot will go in these purposes.

I will create some commands related to space, like getting live data from ISS, getting information about a celestial object, or getting some cronjob that every day will go on NASA website to take the picture of the day.

There'll also have some mods commands like mute that works 100% without this missing discord rights hierarchy. (The user will lose all this ranks and will be saved and have a muted one (that you need to configure for each channel/category)) So the user haves only one role, muted with restricted permission. Then when you unmute him, he just got back his roles, and he's removed from mute role

Setup

Development environment

  1. Install Docker
  2. Install the dependencies with docker-compose run bot npm i
  3. Copy .env from .env-example and fill in the credentials
  4. You can run the stack by running docker-compose up -d
  5. To check the logs you can either attach your shell to the process with docker attach bot or use VS Code Debugger
  6. Stop containers with docker-compose down

Useful commands

  • docker-compose up -d Runs containers
  • docker-compose down Shuts down containers
  • docker-compose run bot <command> Runs a command in the node container (bot)