Skip to content

About

AutoPruner is a simple Discord bot that allows you to prune members on a customizable interval.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

AutoPruner

AutoPruner is a simple Discord bot that allows you to prune members on a customizable interval. A hosted version of AutoPruner can be invited here. The support server is located here.

Running with Docker

This is the recommended way to self-host AutoPruner. The stack has three services:

  • database: PostgreSQL 18
  • migrate: a one-shot container that applies database migrations
  • bot : AutoPruner itself

Copy .env.example to .env and fill in DISCORD_TOKEN and APPLICATION_ID, then:

docker compose up -d

The database is provisioned from POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DB. Leave DATABASE_URL empty to use the bundled database.

To follow the logs:

docker compose logs -f bot

Migrations run on every docker compose up. To run them on their own:

docker compose run --rm migrate

Running without Docker

Prerequisites:

  • Install Bun on your machine.
  • Have a PostgreSQL database available and set DATABASE_URL to its connection string.
bun install
bun run db:generate
bun run db:migrate
bun run start

To register the slash commands:

bun run deploy

License

This project is licensed under the MIT License(LICENSE.md).

About

AutoPruner is a simple Discord bot that allows you to prune members on a customizable interval.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages