Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

unixporn/trup

Repository files navigation

Trup

A Discord bot for the Unixporn community

build status lint status

Dependencies

  • Go
  • PostgreSQL 11 or above

Setup with Docker

After cloning the repository, create a file called .env containing the necessary environment variables (as shown in /.env.example) in the project root.

Afterwards, you can initialize the Docker services by running

docker-compose up -d

Automatic setup with Nix

# Install the Nix package manager:
curl -L https://nixos.org/nix/install | sh

# Clone this repo
git clone https://github.com/unixporn/trup
cd trup

# Enter the dev environment
nix-shell

# Set environment variables
cp .env.example .env

go run .

Set up the database

No need to do this if you use Nix.

# Database
createdb trup
psql trup <db/structure.sql
export DATABASE_URL=postgresql://user@localhost/trup

Kudos to:

  • davidv171 & 6gk for fetcher.sh
  • aosync for commands purge and move
  • tteeoo for commands git, desc and dotfiles
  • kayew for a more explicit setfetch message
  • davidv171 for mute command
  • elkowar for blocklist command, media-logging in botlog and !poll multi
  • Tanish2002 for info command, cleaner !help, DM for ban and blocklist violation and more options for role command