Discord Bot that pipes direct messages to a channel in a server.
This enables submission of anonymous messages to that channel.
You need to have a Postgres database running.
- Get the container
docker pull okkdev/kummerbot - 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
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: .)
- Clone repo
- Set env vars
- Get dependencies
mix deps.get - Create database
mix ecto.create - Run migrations
mix ecto.migrate - Run the bot
mix run --no-halt