CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 6 forks source link

Event-emitting commands #215

Closed RPiAwesomeness closed 7 years ago

RPiAwesomeness commented 7 years ago

The idea is that if a certain command is run, the bot will emit an event through Sepal and other people could subscribe to that event feed. This could be useful for integrations like BroBizzleBot's confetti bot or on-stream text being updated by mods

Example syntax: !command add <name>:<event> <response>. It would include all arguments in the event as well.

2Cubed commented 7 years ago

Alternate syntax idea:

!command event add <event> <name> <response...>
Innectic commented 7 years ago

We had talked in our chat a long time ago about doing event !triggers.

!trigger add triggerName <triggerCause>

Trigger cause could be command being added(removed, changed), same for quotes, etc

2Cubed commented 7 years ago

Right! Duplicate of #179.