Skip to main content

Lightweight Discord moderation toolkit for discord.py bots

Project description

dmodkit

PyPI version Python version License

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:

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

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmodkit-1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dmodkit-1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for dmodkit-1.0.tar.gz
Algorithm Hash digest
SHA256 6c9c83d4b381c324022f61b9f6975c4bbca8ccbb1c3b2d8d94616c603a75d57a
MD5 e8c3bdbac07825920a81d8765ca74ba4
BLAKE2b-256 f47844eee2f3a611768bb250192757b0e584558370850dba1c6896fff4a7d169

See more details on using hashes here.

Provenance

The following attestation bundles were made for dmodkit-1.0.tar.gz:

Publisher: python-publish.yml on mochathehuman/dmodkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for dmodkit-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d9949108c5f629f395cb2e0f62b07e21976482e1f561c091857f1b2f3e51f34
MD5 18f598836ea2bb3ad42c1995bf8e88e7
BLAKE2b-256 a9b50be5f736d53152ef232a7bc908012f7d3714440d48dd0cd0071b776b2137

See more details on using hashes here.

Provenance

The following attestation bundles were made for dmodkit-1.0-py3-none-any.whl:

Publisher: python-publish.yml on mochathehuman/dmodkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page