dico-command
Command handler for dico.
Note: Docs is still not ready.
Example
import dico
import dico_command
bot = dico_command.Bot("YOUR_TOKEN_HERE", "!", intents=dico.Intents.full())
@bot.command("test")
async def test(ctx: dico_command.Context):
await ctx.send("Hello, World!")
bot.run()
Using Addon/module:
main.py:
import dico
import dico_command
bot = dico_command.Bot("YOUR_TOKEN_HERE", "!", intents=dico.Intents.full())
bot.load_module("addons.test")
bot.run()
addons/test.py:
import dico_command
class AddonTest(dico_command.Addon, name="Addon Test"): # name=... is optional
@dico_command.command(name="addon")
async def example(self, ctx: dico_command.Context):
await ctx.send(f"Hello! This is addon `{self.name}`.")
def load(bot):
# Implementing function `load` is required. You may do any actions here.
bot.load_addons(AddonTest)
def unload(bot):
# Implementing function `unload` is required. You may do any actions here.
bot.unload_addons(AddonTest)
Note that using async is forced unlike dico itself.
Release files for dico-command 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dico-command-0.0.11.tar.gz | 10.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dico_command-0.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.4 kB
Release files / dico-command-0.0.11.tar.gz
| Download URL | dico-command-0.0.11.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
774565660260998d17dd6e6f88b7f0cf75d64d966eb42515bfe71e973dfbcc51
|
|
BLAKE2b-256 checksum How to use checksums |
c749912f5b9475a834ad7a267a9e33323fbd6cbd22fa5c6e722c70049870ba74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11
|
Release files / dico_command-0.0.11-py3-none-any.whl
| Download URL | dico_command-0.0.11-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db9df3e41ff1612e9094dd65717bf1e1bf05e8868bd2e82e268cee2da7d01e98
|
|
BLAKE2b-256 checksum How to use checksums |
365c3fbedaf647acb7a940c30ae24e6b4d3fd0e5d8249c23ac6276ca937ba495
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11
|