sainan / clippy
A framework for bots that take human commands.
Fund package maintenance!
Bitcoin
Requires
- php: >=8.0
- madorin/matex: ^1.0
- sainan/jokes: ^1.0
Requires (Dev)
- hell-sh/nose: ^1.1.1
README
A framework for bots that take human commands.
An Example
Delete the last 10 messages
will generate the equivalent of
new CommandDelete(amount: 10)
you can either implement a case for this, or just use ->getResponse()
, which in this case would be:
I'm sorry, I can't do that in this embodiment. :|
You can find a list of all commands here.
Getting Started
composer require sainan/clippy
Have a look at example.php for an example on how to integrate Clippy.
Contributing
If you'd like to contribute to Clippy, there are a few ways to go about it:
- Forking Clippy, making changes (e.g., addressing an issue), submitting a PR
- Help translate Clippy's output at Crowdin