Code Monkey home page Code Monkey logo

lyubomirt / mass-discord-moderation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8.22 MB

MDM (Mass Discord Moderation) is a command-line interface (CLI) application built with Python and Py-Cord. It provides various moderation features to perform bulk actions on a Discord server. The app allows you to ban, unban, kick members, delete and edit roles, change member nicknames, delete and create channels, and more.

Home Page: https://lyubomirt.github.io/mass-discord-moderation/

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
discord discord-servers moderation bulk-discord-moderation mass-discord-moderation

mass-discord-moderation's Introduction

MDM (Mass Discord Moderation)

MDM (Mass Discord Moderation) is a command-line interface (CLI) application built with Python and Py-Cord. It provides various moderation features to perform bulk actions on a Discord server. The app allows you to ban, unban, kick members, delete and edit roles, change member nicknames, delete and create channels, and more.

Installation

To use MDM, you need to have Python and the required dependencies installed on your system. Follow these steps to set up the application:

  1. Clone the repository:

    git clone https://github.com/LyubomirT/mass-discord-moderation.git
  2. Navigate to the project directory:

    cd where/the/files/are/stored
  3. Install the dependencies:

    pip install -r requirements.txt

Usage

To run the MDM CLI application, execute the following command:

python mainRunner.py

Upon running the command, the application will prompt you to authenticate with your Discord Bot Token. If you don't have a token, you can follow the instructions provided to obtain one. After entering a valid token, the application will sign in to Discord and display a list of guilds (servers) the bot is added to.

You can then enter commands to perform various moderation actions. The available commands are:

  • help: Get help about how to use the bot.
  • mb or massban: Ban all members in the selected guild below the bot in the hierarchy.
  • mu or massunban: Unban all banned members in the selected guild.
  • mk or masskick: Kick all members in the selected guild below the bot in the hierarchy.
  • mrd or massroledelete: Delete all roles in the selected guild below the bot in the hierarchy.
  • mre or massroleedit: Change something of all roles in the selected guild below the bot in the hierarchy to something else.
  • mnc or massnicknamechange: Change the nicknames of all members in the selected guild below the bot in the hierarchy to something else.
  • mcd or masschanneldelete: Delete all channels in the selected guild available to delete for the bot.
  • mce or masschanneledit: Change something of all channels in the selected guild to something else.
  • mcc or masschannelcreate: Create many channels specifying the setup for each of them in the selected guild.
  • mrc or massrolecreate: Create many roles specifying the setup for each of them in the selected guild.
  • mmd or massmessagedelete: Delete some messages in the selected channel.
  • mms or massmessagesend: Send some messages in the selected channel.
  • cg: Change the guild where the changes will be applied.
  • exit: Close the application.

Enter help within the application to get a list of commands and their descriptions.

To-Do

  • Split the code into different files
  • Add message management options
  • Compile the app into an executable
  • Create a GUI version

Contributing

The MDM project welcomes contributions from the open-source community. If you would like to contribute to the project, you can follow these steps:

  1. Fork the repository: Click on the "Fork" button on the GitHub repository page (https://github.com/LyubomirT/mass-discord-moderation) to create a personal copy of the project.

  2. Clone the forked repository: Clone the forked repository to your local machine using the following command:

    git clone https://github.com/your-username/repo-name.git
  3. Navigate to the project directory:

    cd mass-discord-moderation
  4. Create a new branch: Create a new branch for your contribution. It is recommended to use a descriptive branch name related to the feature or bug fix you're working on. You can create a new branch using the following command:

    git checkout -b your-branch-name
  5. Make changes: Make the desired changes to the codebase using your preferred code editor or IDE. You can refer to the existing code and project structure to understand how things are implemented.

  6. Test your changes: Before submitting your contribution, ensure that the application is working as expected. Run the application and verify that the new features or bug fixes are functioning correctly.

  7. Commit your changes: Once you are satisfied with your changes, commit them to your local repository using the following commands:

    git add .
    git commit -m "Your commit message"
  8. Push your changes: Push your changes to your forked repository on GitHub using the following command:

    git push origin your-branch-name
  9. Create a pull request: Go to the original repository on GitHub (https://github.com/LyubomirT/mass-discord-moderation) and click on the "Pull request" button to create a new pull request. Provide a descriptive title and explanation of your changes in the pull request description.

Of course, if you don't want to contribute code, you can create an issue with a feature request, or with a bug report.

Disclaimer

It's important to note that the MDM application performs bulk moderation actions on Discord servers. To ensure responsible use, please ensure that you have the necessary permissions and authority to perform such actions on the servers you use it with. The creator of the app cannot take responsibility for how you use the app or for any consequences that may arise.

License

The MDM application is open-source and licensed under the BSD 3-Clause License.

mass-discord-moderation's People

Contributors

lyubomirt avatar

Stargazers

 avatar

Watchers

 avatar

mass-discord-moderation's Issues

RuntimeError: can't register atexit after shutdown

Description the bug:
This repo was cloned to Replit, when I Run — after few minutes Im got the RuntimeError.

To Reproduce
Steps to reproduce the behavior on the video on Discord: (bc this video is big for 2 minutes)

https://media.discordapp.net/attachments/970370306403356753/1218125102814724096/RPReplay_Final1710493886.mov?ex=66068668&is=65f41168&hm=fb4cc484cbd78ce09acb0a42b0b894ddcf1aee0ecd9ba1d3a13e8b40c1b74694&

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Uploading 0DABAEA6-9357-4651-9614-134A7CA7A47A.png…
If this screen isn’t available — check this on Discord too: https://media.discordapp.net/attachments/970370306403356753/1218125451709517844/IMG_0131.png?ex=660686bb&is=65f411bb&hm=bc9835f6f8073f134163859d7f2ccb9de9d0185c5e23b9dc28bd89e43110761a&

Smartphone:

  • Device: [iPad Pro 11-inch]
  • OS: [iOS 16.3]
  • Workplace: Replit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.