ib-ai / modmail.py

Modmail, but in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

modmail.py

ModMail, but in Python

Running the bot

  1. Navigate to the root directory.
cd <path>/modmail.py
  1. Copy the config.example.json, rename to config.json, and replace the relevant values. If you want to inject the config at runtime using environment variables, don't replace the values.

  2. Build the bot using Docker.

docker image build -t modmail-py .
  1. Run the docker container.
docker container run --name modmail \
    -v database:/database \
    modmail-py

As aforementioned, you can also inject environment variables.

docker container run --name modmail \
    -v database:/database \
    -e MODMAIL_TOKEN=foo \
    -e MODMAIL_GUILD=123 \
    -e MODMAIL_CHANNEL=321 \
    -e MODMAIL_PREFIX=! \
    modmail-py

About

Modmail, but in python

License:GNU General Public License v3.0


Languages

Language:Python 99.5%Language:Dockerfile 0.5%