Debugging Tool for discord.py
Project description
dibug
Debugging Tool for discord.py
Installation
Python 3.10+ is required
pip install dibug
Usage
from discord import Client, Intents, Message
from dibug import Dibugger
owners = [1234567890] # owners id
async def user_has_perm(msg: Message) -> bool:
return msg.author.id in owners
intents = Intents.default()
intents.message_content = True # dibug requires message content intent
bot = Client(intents=intents)
Dibugger.attach(bot, user_has_perm)
bot.run("token")
Commands
Default Prefix: !dbg
-
<prefix>
|<prefix> info | i
: Show bot info -
<prefix> eval | e | python | py <code>
: Evaluate python code -
<prefix> kill | k | shutdown
: Kill bot process -
<prefix> shell | sh <code>
: Execute shell command
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dibug-0.5.0.tar.gz
(6.3 kB
view details)
Built Distribution
dibug-0.5.0-py3-none-any.whl
(8.9 kB
view details)
File details
Details for the file dibug-0.5.0.tar.gz
.
File metadata
- Download URL: dibug-0.5.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1040-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b6bcd69a2df2dea36f65faa29d4a066f749f309dd6562e98c89aafda14f2ef8 |
|
MD5 | e8a3e3b52b269a7d8462312050620953 |
|
BLAKE2b-256 | f064892a00ac30feb2c94a092e68841ca6ace7b30cd08aa0f349ea367f4a5841 |
File details
Details for the file dibug-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: dibug-0.5.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1040-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42acea4b94fc8a2e9df6ec05aae5dc8e5141697003f05f0f66fef3ceedb4800a |
|
MD5 | f8f3cd76477d3ee4016d82aaba584dcd |
|
BLAKE2b-256 | 54326f088b2b8726a579a4ddf983b221f30dcd0e488a9c47a647ba1cb6a5a269 |