pinhook
pinhook copied to clipboard
Add a decorator for "pipe"able commands
One thing I've seen some bot creators do is create commands that can "chain" or "pipe" into each other. This would use the output of one command as the input for the next one. As an example, a bot may support the commands "!rainbow" and "!superhero". Chaining the two commands together (like "!superhero | !rainbow") would result in a random super hero printed in a rainbow color; the output from "!superhero" would be used to call "!rainbow
This might actually have to be done in the bot class rather than as a decorator, but I love the idea!