- Saved searches
- Use saved searches to filter your results more quickly
- License
- nerdimite/discord-modbot
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- License
- FQQD/simple-moderation-bot
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- Saved searches
- Use saved searches to filter your results more quickly
- License
- Discord-py-Projects/Discord.py-Moderation-Bot
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- License
- nix42/Discord-Moderation-bot
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A Chat Moderation Bot for Discord
License
nerdimite/discord-modbot
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
A Chat Moderation Bot for Discord
ModBot is an AI powered general-purpose chat moderation discord bot which can be used to filter messages of any topic without any custom fine-tuning or training. It works out of the box for any topic to be filtered or restricted in a channel.
A distilbart model finetuned for natural language inference is repurposed for zero-shot text classification to classify messages into the filter categories. This makes the system work for almost all topics without the need of any fine-tuning on custom topics.
- Create your bot account and add it to your server. Make sure you give the bot the permissions to manage messages and enable the message content privileged intents.
- Install the required python libraries with pip install -r requirements.txt .
- Set a DISCORD environment variable with your bot’s secret client token.
- Edit the text_filters.txt file with the topics you want to restrict. Each new topic should be a new line.
- Run the modbot.py script with python modbot.py . Voila! Your bot is not active and will automatically delete messages which belong to the topics mentioned in your filter. You can edit the text_filters.txt file while the bot is running without the need to restart the bot for new filters.
- It can be used for filtering messages which contain hate speech, racism, or other such disrespectful slurs.
- You can use this bot for keeping the chat of your users on-topic in a channel and remove off-topic messages.
Disclaimer and Tips for Improvements
- This is a purely experimental project and not ready for use in large communities. The AI used may contain social biases and can even wrongly delete messages.
- Ideally, if you want to deploy it to your discord server, you may want to implement a grievance system so users can report wrongfully deleted messages. You might also want to implement a feedback loop to improve the model overtime.
- An ensemble of models might even work better using different variants of distilbart.
- All in all, use this model at your own risk.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A simple moderation bot written in Python with disnake.py for self hosting
License
FQQD/simple-moderation-bot
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
A simple moderation Discord bot written in Python with disnake.py for self hosting
Follow these steps to install the bot on Ubuntu Server:
sudo apt install python3 pip git screen nano -y git clone https://github.com/FQQD/simple-moderation-bot.git cd simple-moderation-bot mkdir warnings sudo chmod +x start.sh pip3 install disnake pip3 install aiofiles
Set up an application in the discord developer portal, if you don’t know how, read
To invite the bot to your servers read this:
Please note that you should turn on all intents for simplicity.
Now you need your Bot’s token. You can find it in the «Bot» section of your Discord developer apllication. Copy the Token and put it into the main.py file:
Paste your Token into the selcted area and exit nano with CTRL+X
To run this bot, we’re gonna be using «screen», so the bot still runs, even if we exit our ssh connection.
screen -S moderationbot ./start.sh
You now should see after short waiting, that your bot is online and ready to be used. To detach the screen session, do CTRL+A and CTRL+D. Its now safe to exit your ssh session.
To view all running screen session / bots, run:
To reattach the screen session / the bot, run:
Here are all the commands that the Bot is able to perform:
See the credits of the bots
Show and download the profile picture of a user
Show this a list of commands that everyone can user
Ban members (Use Discord intern feature for message removal) (Needs Ban Permission)
Kick members (Needs Kick Permission)
See all warnings of a member
Remove warnings of a member
See information about a member
Show a list of commands that require the «Moderate Members» Permission
This is my first attempt to program a real bot, so please dont hate on the code too much.
I know — it’s messy an probably should be done completly differently, but it’s enough for me, since it just works.
If you use it, please dont remove / edit out my credits out of the /credits command.
About
A simple moderation bot written in Python with disnake.py for self hosting
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A discord.py moderation bott
License
Discord-py-Projects/Discord.py-Moderation-Bot
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Open a terminal or cmd (Depending on you’re operating system)
Type: git clone https://github.com/Discord-py-Projects/Discord.py-Moderation-Bot.git
Type if you’re on mac/linux: pip3 install -r requirements.txt Type if you’re on windows: pip install requirements.txt
Last open bot.py and replace the variable TOKEN with you’re bot token and PREFIX with you’re bot prefix
Bam! You have a discord moderation bot, type in: help to see commmands
The leader of this organatizion is And currently looking for other developers. We make discord.py bots for samples for bigger projects. I started this to help other discord.py devs to have a reliable source to get bot code from. We don’t care about you putting us in too you’re contribtions file but would be highly appreactiated! Thank you for using our code
If you would like to join our team, Please contact us at pythonsytaxerror@protonmail.com
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Basic discord moderation bot, written in python using discord.py
License
nix42/Discord-Moderation-bot
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Basic discord bot written in python and discord.py to provide useful moderation tools to a discord server
- kick
- Ban/unban/softban
- Clear
- Profanity filter
- Roles (In progress)
To setup this bot yourself simply clone the repo add the token from the discord bot bot you have created via discord:
To change the command prefix (default = ‘./’) to something such as «/» or «~»:
bot = commands.Bot(command_prefix = 'insert_preifx_here')
Ensure that the script is executable: chmod +x main.py
- Kick: ./kick member_name
- Ban: ./ban member_name
- Unban: ./unban member_name
- Softban: ./softban member_name time
- Clear: ./clear 20 (this means 20 messages will be deleted)
- Blacklist: ./blacklist_add word (word is where you would type what you want to blacklist
About
Basic discord moderation bot, written in python using discord.py