Metadata-Version: 2.1
Name: dibug
Version: 0.5.1
Summary: Debugging Tool for discord.py
Home-page: https://github.com/star0202/dibug
License: MIT
Author: Starcea
Author-email: stardev.uwu@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: async-eval (>=0.1.11,<0.2.0)
Requires-Dist: discord-py (>=2.0.0)
Requires-Dist: psutil (>=5.9.5,<6.0.0)
Project-URL: Repository, https://github.com/star0202/dibug
Description-Content-Type: text/markdown

[![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/star0202/dibug/release.yml?branch=stable&style=flat-square)](https://github.com/star0202/dibug/actions/workflows/release.yml)
[![GitHub](https://img.shields.io/github/license/star0202/dibug?style=flat-square)](https://github.com/star0202/dibug/blob/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/dibug?style=flat-square)](https://pypi.org/project/dibug)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dibug?style=flat-square)](https://pypi.org/project/dibug)

# dibug

Debugging Tool for discord.py

# Installation

Python 3.10+ is required

```sh
pip install dibug
```

# Usage

```py
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

