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


class Bot(Client):
    def __init__(self) -> None:
        intents = Intents.default()
        intents.message_content = True  # dibug requires message content intent
        super().__init__(intents=intents)


bot = Bot()

dibugger = Dibugger(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.4.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

dibug-0.4.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dibug-0.4.0.tar.gz
  • Upload date:
  • Size: 6.2 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.4.0.tar.gz
Algorithm Hash digest
SHA256 8d7b13c210565eb1ec4e045bede2d88a2728715f11dad0d653c5577ddaf4def5
MD5 d97c19028e23dc00d9d9d4ed26383883
BLAKE2b-256 b7c5744da3b149cd8e83515b8dd4fd7138d56aa030741962a5e8769d44e8c81d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dibug-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c47d8ce3248658cd13d885a0e6021117ba539db4f48b46e927f676ea7dd24d13
MD5 402235e6208c0223b7b33a1adfb22f90
BLAKE2b-256 0f2485723e5676813c35fd5f7425d9093f36d2a517173207fbcb6aece88e714e

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