Skip to main content

Python versions License Status Issues Commit activity

  disnake-debug

a debugging and utility extension for disnake bots


disnake-debug is an extension for bot developers that enables rapid prototyping, experimentation, and debugging of features for bots. features include easy blacklisting, dynamically change bot avatar and name, pause and unpause the bot (stop it from responding to commands until unpaused), evaluate code (normal, return and dir), leave guilds, speak as the bot, view invokes and view bot statistics

One of disnake-debug's core philosophies is to be dynamic and easy-to-use. Here's the two step install:

  1. Download disnake-debug on the command line using pip:
pip install -U disnake-debug
  1. Load the extension in your bot code before it runs:
bot.load_extension('disnake-debug')

That's it!

How to use debug:

Once the extension is loaded and the bot is online you can just run the debug command If your prefix is . you would run .debug

How to configure the database (sqlite) location:

In your .env, put DATABASE_PATH=your_path Make sure there is a database.db file in your_path

Configure the embed colors:

In your .env replace EMBED_COLOR with a hex color EMBED_COLOR is automatically created and added to your .env

Simple bot example with disnake-debug:

from dotenv import load_dotenv # import load_dotenv to load your .env file
from os import environ # import environ 
from disnake import Intents # import intents
from disnake.ext.commands import Bot # import Bot class

bot = Bot(
   command_prefix=".", # your command prefix
   owner_ids=[298043305927639041], # put your owner id in here
   intents=Intents.all() # so you can see users (required for blacklist)
)
bot.load_extension("disnake-debug") # load debug extension. one command and that is debug

@bot.event
async def on_ready() -> None:
   print(f"Logged in as {bot.user}")

if __name__ == "__main__":
   load_dotenv()
   bot.run(environ["TOKEN"])

Some pictures:

Metadata

Release files for disnake-debug 2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for disnake-debug 2.6
File Size Uploaded
disnake-debug-2.6.tar.gz 24.4 kB Details

Release files / disnake-debug-2.6.tar.gz

Download URL disnake-debug-2.6.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
21b54b7521e6594e090f3eef06d7a5a45135fa64f58c939d4cf3b0ce25a21af5
BLAKE2b-256 checksum
How to use checksums
8c92efcb8884b25c578004e419bf70b7ed593d5bedd668af5cea732407bca9ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

Release history Release notifications | RSS feed

This release

2.6 This release

1 release file

2.5

1 release file

2.4

1 release file

2.3

1 release file

2.2

1 release file

2.1

1 release file

2.0

1 release file

1.9

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.9

1 release file

0.8

1 release file

0.4

1 release file

0.3

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page