Skip to content

AltF02/Astra

Repository files navigation

Astra

Build Discord Bots

Astra is a discord bot written in rust to keep you reminded on rocket launches and more! An always online bot is available here

How to start

Native

Clone the repo with

git clone https://github.com/AltF02/astra.git

We need to copy the example.env to .env

cp .example.env .env

Fill out this with your token and configuration. Once that's done we're going to run, this will take some time as its compiling everything

cargo run

Docker

NOTE: Docker support is currently in beta and can cause issues

docker-compose

Using docker compose requires an .env file, an template can be found in .example.env

version: "3"
services:
  astra:
    restart: always
    build: .
    networks:
      - astra
    env_file:
      - .env
  astra-db:
    image: postgres:14.1-alpine3.14
    volumes:
      - data:/var/lib/postgresql/data
    networks:
      - astra
    ports:
      - "5432:5432"

volumes:
  data:

networks:
  astra: