discord-modmail

Discord Mod Mail Bot

A Discord bot built with Python and discord.py, designed for handling direct messages, and enabling moderators to reply to users through a dedicated channel.

Python Version 3.8.x DiscordPy Version 2.3.2 License

Features

Installation

Prerequisites

Setup

  1. Clone the repository:
    git clone https://github.com/w3nabil/discord-modmail.git
    cd discord-modmail
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Set up environment variables:
  4. Configure config.json:
    • Modify the config.json file in the project root and structure it like this:
      {
        "server_id": 123456789012345678, // This is your SERVER ID
        "mod_channel_id": 123456789012345678, // This is the channel where dms messages will be forwarded
        "mod_role_id": 123456789012345678 // Moderator Role, so that they can send messages
      }
      
  5. Run the bot:
    python bot.py
    

Usage

Error Handling

Limitations

License

This project is licensed under the MIT License. See LICENSE for details.

Contact

For questions, feedback, or collaboration opportunities, feel free to reach out at w3nabil@gmail.com.