Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 972 Bytes

File metadata and controls

33 lines (20 loc) · 972 Bytes

Kummerbot

Discord Bot that pipes direct messages to a channel in a server.

This enables submission of anonymous messages to that channel.

Prerequisites

You need to have a Postgres database running.

Setup Docker

  1. Get the container docker pull okkdev/kummerbot
  2. Run the container. Example: docker run -e KUMMER_BOT_TOKEN=your_bot_token -e KUMMER_CHANNEL=your_kummer_channel -e KUMMER_DATABASE_URL=your_postgres_db_url -d okkdev/kummerbot

Environment variables

KUMMER_BOT_TOKEN - Discord bot token

KUMMER_CHANNEL - ID of the channel where the messages are sent

KUMMER_DATABASE_URL - URL to the Postgres database (default: ecto://postgres:postgres@localhost/kummerbot_repo)

(optional) KUMMER_PREFIX - prefix for the bot commands (default: .)

Development

  1. Clone repo
  2. Set env vars
  3. Get dependencies mix deps.get
  4. Create database mix ecto.create
  5. Run migrations mix ecto.migrate
  6. Run the bot mix run --no-halt