Skip to content

Add a decorator for "pipe"able commands #56

Description

@RussellChamp

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 ".
The decorator would go on any plugin that is allowed to be "piped" into another. In this case, it would be on "!superhero" and the decorator would mean that only the user input up to the first pipe '|' would be sent to that command.
I'd be interested in doing this at some point in the future!

Metadata

Metadata

Assignees

Labels

futureThings on the roadmapircissues related directly to IRC

Projects

Status
Future

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions