DeLuks2006 / DNA-Quote-Bot

yes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DNA-Quote-Bot

A discord bot that spits out a new quote each day.

Installation

Installation for development with docker

  1. Copy .env.example and rename to .env
cp .env.example .env
  1. Configure the .env file and start the docker container
docker compose up
  1. Database migrations via alembic
# Connect to the docker container
docker exec -it dna-quote-bot /bin/bash

# Run migrations
alembic upgrade head

That's it. The application is running in docker. You can now connect to the docker container and develop.

Alembic cheatsheet

# Auto-generate migrations
alembic revision --autogenerate -m "<Migration Name>"

# Run migrations
alembic upgrade head

# Downgrade to previous commit
alembic downgrade -1

# Upgrade to next commit
alembic upgrade +1

About

yes


Languages

Language:Python 94.7%Language:Mako 2.8%Language:Shell 1.5%Language:Dockerfile 1.0%