unixporn / trup

Discord bot for the Unixporn community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Discord bot for the Unixporn community

License:Mozilla Public License 2.0


Languages

Language:Go 92.4%Language:Shell 4.1%Language:PLpgSQL 2.4%Language:Nix 0.7%Language:Dockerfile 0.3%