A general purpose library for command-based iteraction made for bots
Project description
Command For Bot
command4bot
is a general purpose library for command-based iteraction made for bots.
Installation
pip install command4bot
Quick Start
from command4bot import CommandsManager
mgr = CommandsManager()
@mgr.command
def greet(payload):
return f"Hello, {payload}!"
mgr.exec('greet John') # 'Hello, John!'
Features
- Register command with a simple decorator
- Managing command open and closed status with ease
- Automatically manage command's dependency (a.k.a.
setup
) with its status - Fallback handlers if no command found
Documentation
:warning: The documentation is still working in progress!
https://command4bot.readthedocs.io/en/latest/
Todo
- Support for commands need interaction
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
command4bot-0.3.0.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for command4bot-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5c14c4d3ea799cc1af9b01759f739602c4e659c52652099d1875ddb57690c1c |
|
MD5 | bf9b8840ff0dd0d5ac3d0adacc066e14 |
|
BLAKE2b-256 | 2c8c044e87877b9207b7c9a9ee7e41619128faefd89da9b0c89fa41c76061304 |