tiny icon indicating copy to clipboard operation
tiny copied to clipboard

Add way to execute commands automatically

Open Anachron opened this issue 6 years ago • 3 comments

It would be cool if tiny allows to optionally run a cmd on every msg receive which has SENDER, MSG, TIME 'TYPE` (msg, action, join|leave) environment variables set accordingly so we would be pretty much free to implement an IRC bot in any language we want.

It would then listen for any output and reply with this output.

It should be possible to message between servers and switch action types.

Anachron avatar Sep 20 '19 05:09 Anachron

Interesting idea. I don't think this would be very hard to implement. I'm currently rewriting most of the tiny in another branch and it's very close to being finished. This would be much easier to implement in that branch as the code is much better structured. We should revisit this when that's done -- see progress in #136 .

osa1 avatar Sep 20 '19 06:09 osa1

Do you know any IRC clients that has a feature like this? Would be good to take a look.

osa1 avatar Sep 20 '19 06:09 osa1

Glad you like it! Afaik irssi allows for scripts: https://scripts.irssi.org/

Anachron avatar Sep 20 '19 06:09 Anachron