Skip to main content

Debugging Tool for discord.py

Project description

GitHub Workflow Status (with branch) GitHub PyPI PyPI - Python Version

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 = [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 | e | python | py <code>: Evaluate python code
  • <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.3.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

dibug-0.3.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file dibug-0.3.0.tar.gz.

File metadata

  • Download URL: dibug-0.3.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.11 Linux/5.15.0-1038-azure

File hashes

Hashes for dibug-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6518b89f9e4752f2c32b906aa8edb7d28c4c0082e3ee424f53e7fc551b97b404
MD5 2ccecc08ca8a2845037d36c99ce1f769
BLAKE2b-256 29c03ec733c8d04fe703f415f1c475cefcac1efb277eef47b1167363581be5b6

See more details on using hashes here.

File details

Details for the file dibug-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: dibug-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.11 Linux/5.15.0-1038-azure

File hashes

Hashes for dibug-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0ca4e8dff1a5fe6c42f3c0649990b060d23b90c3c2c98cdcec5f8e19a8f14ff
MD5 c4c03e633cb22dab7a9eb075be8fbdf6
BLAKE2b-256 eb0958597cd82a81e8dbc44e8f8a5ca3e393ad3eb94da29d67331b400e75cd97

See more details on using hashes here.

Supported by

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