Skip to content

raidensakura/modmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ea491e6 · Dec 22, 2023
Dec 22, 2023
Dec 22, 2023
Aug 18, 2023
Jul 13, 2023
Dec 22, 2023
Dec 22, 2023
May 9, 2023
Jun 6, 2023
Jun 9, 2023
Dec 22, 2023
Dec 22, 2023
Nov 2, 2019
Jun 6, 2023
Jul 9, 2020
Dec 22, 2023
Jun 4, 2023
Dec 22, 2023
Jun 4, 2023
Nov 1, 2020
Dec 22, 2023
Dec 22, 2023

Repository files navigation


Raiden's personal fork of Python Discord Modmail bot.

Made with Python 3.8 MIT License Support

Why hard fork?

Several fundamental issues for the official Modmail require fixes that are backward-incompatible, hence I decided to make this fork since it's unlikely my PR will be accepted. As this is a pretty niche use-case, most users should probably not use this. As a disclaimer, I will not be responsible for any damage caused to your Modmail instance by using my fork. This is made public simply for the spirit of open-source software.

This is mainly maintained by @raidensakura and @khakers.

Installation

This is a general installation guide for developers. Refer to the documentation for user guide.

This guide assumes you have installed git, a compatible Python version and Poetry installed.

  1. Clone the repository
    $ git clone https://github.com/raidensakura/modmail
    $ cd modmail
  2. Create a Discord bot account, grant the necessary intents, and invite the bot.
  3. Create a free MongoDB database.
  4. Rename the file .env.example to .env and fill it with appropriate values
  5. Install the Python dependencies and run the bot
    $ poetry install --no-root
    $ poetry run python bot.py
  6. [Optional] Load the logviewer plugin with [p]plugin load raidensakura/modmail-plugins/logviewer@main

Running the Docker Image

This guide assume you already have Docker or Docker Compose installed.

  • Running with docker:
    $ docker run --env-file=.env --name=modmail ghcr.io/raidensakura/modmail:stable
  • Running with Docker Compose:
    $ docker compose up -d

Support & Issues

Issues with this fork can be opened through GitHub Issues.

Support for this forked version of Modmail can be requested through Raiden's Discord server. As I don't have a dedicated team to answer questions and provide help, it will be answered based on my availability.

Contributing

Check out the contributing guidelines before you get started.

The develop branch is where most of the features are tested before stable release.

This project has included pre-commit script that automatically runs black and ruff linter on every commit.

  1. Install development dependencies
    $ poetry install --only dev
  2. Install the pre-commit hook
    $ poetry run pre-commit install

Alternatively, you can also lint the codebase manually

$ poetry run black .
$ poetry run ruff .

About

A Modmail fork with a focus on improvements and bug fixes.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 99.8%
  • Other 0.2%