Debugging Tool for discord.py
Project description
dibug
Debugging Tool for discord.py
Usage
from discord import Client, Intents, Message
from dibug import Dibugger
owners = [798690702635827200]
class Bot(Client):
def __init__(self) -> None:
intents = Intents.default()
intents.message_content = True # dibug requires message content intent
super().__init__(intents=intents)
self.dibugger = Dibugger(self, lambda id: id in owners)
async def on_message(self, msg: Message) -> None:
await self.dibugger.handle_msg(msg)
bot = Bot()
bot.run("token")
Commands
Default Prefix: !dbg
<prefix>eval <code>
: Evaluate code
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.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
dibug-0.1.0-py3-none-any.whl
(6.0 kB
view details)
File details
Details for the file dibug-0.1.0.tar.gz
.
File metadata
- Download URL: dibug-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.11 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13102f33e228bab0a62bac9f5f73b91e7e7434257e5f321d188b76639059126d |
|
MD5 | c65e33735cb5d4f000b7e443316bf6ba |
|
BLAKE2b-256 | bc6f1001a89eb5c07390755773d01b915634e599dd71bdb705db28e3fc6a8628 |
File details
Details for the file dibug-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: dibug-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.11 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc88eb82d0901932f96873a78bad0204ffae2ccf4d14f0d1d999ce50ab63d6e8 |
|
MD5 | aec3a5b2cb229a91ec070f6ef988720d |
|
BLAKE2b-256 | 900d9c1848c509e9407d845ff3a2f2e2afa343eb0872117cb1891cdea59fdc64 |