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.
- 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.
- Python 3.8 or higher
- Dependencies listed in
requirements.txt
-
Clone the Repository
git clone https://github.com/YourUsername/discord-moderation-bot.git cd discord-moderation-bot
-
Install Dependencies
pip install -r requirements.txt
-
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
-
Run the Bot
python bot.py
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.
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.
This project is licensed under the MIT License. See the LICENSE file for details.
- discord.py for the API library.
- Pydroid 3 for the development environment on Android.
- Replace
YourUsername
with your GitHub username in the repository links and badges. - Update the bot features or commands if there are additional functionalities or changes.
- Add additional badges as needed, such as test coverage or code quality.