Skip to main content

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.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

dibug-0.2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dibug-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 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.2.0.tar.gz
Algorithm Hash digest
SHA256 2211cb3e3b6d00e6867ab7ddd159089429b8b13cb602e5ae4b8c776025668843
MD5 fbd96dae101b8787fe33da2c9b5e89f9
BLAKE2b-256 68cc023578f92da449d3e1286bbc4a8e2e630fda0299f34eb399ceba687d448d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dibug-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11e6ce415fc7d76586ce81ffd323430dd93e318ab58f07ac3bf5340f293a8b8f
MD5 64908bc171e42c277f0e009a23c16d1a
BLAKE2b-256 a14f19c7d18caed1eaf439d03407544b59c1ead97ae689d84b7c3b4490a0489d

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