Lightweight Discord moderation toolkit for discord.py bots
Project description
dmodkit
dmodkit is a fast, no-fluff Discord moderation toolkit for discord.py bots. Plug it in, load commands, and go.
Install:
pip install dmodkit
Features
- Slash commands for:
- Kick / Ban
- Warns & Strikes (auto-kick on 3rd)
- Timeout Mute / Unmute
- Message Purge
- Channel Lock / Unlock
- Slowmode control
- Nickname changes
- Snipe (last deleted message)
- Command logging
- Warning history saved to
warnings.log
[!IMPORTANT]
This project requires the following packages:
discord.py(v2.0.0 or higher)loggingutil(v1.2.2 or higher)Install them using:
pip install discord.py loggingutil==1.2.2
Quickstart
import discord
from discord.ext import commands
from discord import app_commands
from dmodkit import Modkit
client = discord.Client(intents=discord.Intents.all())
tree = app_commands.CommandTree(client)
modkit = Modkit(client, tree)
modkit.load_all()
@client.event
async def on_ready():
await tree.sync()
print(f"Logged in as {client.user}")
client.run("YOUR_TOKEN")
Logs
- Warnings:
warnings.log - Commands:
modkit.log - Supports buffering, compression, and rotation
Planned
- Context menu moderation
- AutoMod keyword filters
- Persistent user notes
Permissions
Ensure your bot has:
- Kick Members
- Ban Members
- Moderate Members
- Manage Messages
- Manage Nicknames
- Manage Channels
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dmodkit-1.0.tar.gz.
File metadata
- Download URL: dmodkit-1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c9c83d4b381c324022f61b9f6975c4bbca8ccbb1c3b2d8d94616c603a75d57a
|
|
| MD5 |
e8c3bdbac07825920a81d8765ca74ba4
|
|
| BLAKE2b-256 |
f47844eee2f3a611768bb250192757b0e584558370850dba1c6896fff4a7d169
|
Provenance
The following attestation bundles were made for dmodkit-1.0.tar.gz:
Publisher:
python-publish.yml on mochathehuman/dmodkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dmodkit-1.0.tar.gz -
Subject digest:
6c9c83d4b381c324022f61b9f6975c4bbca8ccbb1c3b2d8d94616c603a75d57a - Sigstore transparency entry: 213643277
- Sigstore integration time:
-
Permalink:
mochathehuman/dmodkit@ec82561d8bcdb4d65646f48c332dd96bb50b3215 -
Branch / Tag:
refs/tags/v1.0 - Owner: https://github.com/mochathehuman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ec82561d8bcdb4d65646f48c332dd96bb50b3215 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dmodkit-1.0-py3-none-any.whl.
File metadata
- Download URL: dmodkit-1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d9949108c5f629f395cb2e0f62b07e21976482e1f561c091857f1b2f3e51f34
|
|
| MD5 |
18f598836ea2bb3ad42c1995bf8e88e7
|
|
| BLAKE2b-256 |
a9b50be5f736d53152ef232a7bc908012f7d3714440d48dd0cd0071b776b2137
|
Provenance
The following attestation bundles were made for dmodkit-1.0-py3-none-any.whl:
Publisher:
python-publish.yml on mochathehuman/dmodkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dmodkit-1.0-py3-none-any.whl -
Subject digest:
7d9949108c5f629f395cb2e0f62b07e21976482e1f561c091857f1b2f3e51f34 - Sigstore transparency entry: 213643281
- Sigstore integration time:
-
Permalink:
mochathehuman/dmodkit@ec82561d8bcdb4d65646f48c332dd96bb50b3215 -
Branch / Tag:
refs/tags/v1.0 - Owner: https://github.com/mochathehuman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ec82561d8bcdb4d65646f48c332dd96bb50b3215 -
Trigger Event:
release
-
Statement type: