Skip to content

Hoshikoooo/discord-moderation-bot-

Repository files navigation


Discord Moderation Bot

Python Version License Build Status

A powerful Discord bot designed for server moderation. This bot provides essential administrative commands to manage your server effectively. Features include kicking, banning, muting, and locking channels.

Features

  • Kick: Remove a member from the server.
  • Ban: Permanently remove a member from the server.
  • Mute: Temporarily mute a member for a specified duration.
  • Lock: Lock all channels to prevent sending messages.

Getting Started

Prerequisites

  • Python 3.8 or higher
  • Dependencies listed in requirements.txt

Installation

  1. Clone the Repository

    git clone https://github.com/YourUsername/discord-moderation-bot.git
    cd discord-moderation-bot
  2. Install Dependencies

    pip install -r requirements.txt
  3. Set Up Your Bot Token

    Create a .env file in the root directory of your project and add your Discord bot token:

    DISCORD_TOKEN=your-bot-token-here
    
  4. Run the Bot

    python bot.py

Usage

Once the bot is running, you can use the following commands:

  • !kick @member [reason]: Kicks the specified member from the server.
  • !ban @member [reason]: Bans the specified member from the server.
  • !mute @member [duration in minutes] [reason]: Mutes the specified member for the given duration.
  • !lock: Locks all channels, preventing members from sending messages.

Badges

Repository Size Last Commit

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your proposed changes. Ensure that your code adheres to the existing coding style and includes appropriate tests.

License

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

Acknowledgements


Customizing the README

  1. Replace YourUsername with your GitHub username in the repository links and badges.
  2. Update the bot features or commands if there are additional functionalities or changes.
  3. Add additional badges as needed, such as test coverage or code quality.

About

A simple moderation bot for discord

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages