discord is discord.py bot debug tools
Project description
This module is built on top of Jishaku.
- Download jishaku
pip install -U "jishaku @ git+https://github.com/Gorialis/jishaku@master"
udo is an extension for bot developers that enables rapid prototyping, experimentation, and debugging of features for bots.
One of udo's core philosophies is to be dynamic and easy-to-use. Here's the two step install:
- Download udo on the command line using pip:
pip install -U udo
- Load the extension in your bot code before it runs:
bot.load_extension('udo') # or await bot.load_extension('udo')That's it!
You can also import the module to use the command development utilities.
Command reference
>
The Python commands execute or evaluate Python code passed into them.
It supports simple expressions:
|
_ctx |
The Context that invoked the command. |
_bot |
The running Bot instance. |
_author _channel _guild _me _message _msg |
Shortcuts for attributes on _ctx .
|
_find _get |
Shortcuts for discord.utils functions.
|
The underscore prefix on the provided variables is intended to help prevent shadowing when writing large blocks of code within the command.
If you decide that you don't want the prefix, you can disable it by setting the
udo_NO_UNDERSCORE
environment variable to true
.
Each Python command is individually scoped. That means variables you create won't be retained in later invocations.
>
The shell command executes commands within your system shell.
|
>
|
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
udo_py-1.0.2.tar.gz
(36.4 kB
view details)
Built Distribution
udo.py-1.0.2-py3-none-any.whl
(42.5 kB
view details)
File details
Details for the file udo_py-1.0.2.tar.gz
.
File metadata
- Download URL: udo_py-1.0.2.tar.gz
- Upload date:
- Size: 36.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 972c78b7806069ab135ea472d56ae52eb46509b40d544ddc98a08207cef544c7 |
|
MD5 | 2d963b07f9f6f2daca72004797c8797b |
|
BLAKE2b-256 | 6a44691528b1648fae52a37dc7839bf2ab63cb002d66bded44d0aa0de05882cd |
File details
Details for the file udo.py-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: udo.py-1.0.2-py3-none-any.whl
- Upload date:
- Size: 42.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91ce500c55eea52b016e2b6b831042fc5f3b03b68ebe8069ead4345ffc95ca84 |
|
MD5 | 8a83d255cfc7e662f1802fb722e72902 |
|
BLAKE2b-256 | 78e497dc18a6136d92547a747f34652742f7c35f28f3270873f91cecbbb1b2b9 |