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 = [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.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

dibug-0.5.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dibug-0.5.1.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

Hashes for dibug-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a06a9a83fa933a2502faf4674ba133fa3c0a049f3944503e4f67972a5c1c96d6
MD5 47f394c8a39848ac66786ffda3d95fbc
BLAKE2b-256 747a10fa425d98ed3d14a8a8ad7fbb1aba50ecb098c5d02efd044cfc3bb79eb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dibug-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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

Hashes for dibug-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 674624be1fd004dbb0e9b64b077f1e796788ac4724160c71e1ab4d7a91ec115b
MD5 23630a93d909938ce9f666196c750b58
BLAKE2b-256 60449549e7611315de5bf0f68ba2077fa4b537b1af503c2327e8958c0742710d

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