shazow / ssh-chat

Chat over SSH.

Home Page:https://shazow.net/posts/ssh-how-does-it-even/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Plugin support

minecraftchest1 opened this issue · comments

I love ssh.chat for it's simplicity, and I think it would be nice if there was a way to have plugins. I don't wan't this feature to make ssh.chat more complicated, so maybe it could have a optional switch that specifies a path to a plugins folder. Then, if specified, it would run a script for a event (such as new message, new pm, etc) with a user argument (user who caused the event) and message argument (message sent) before displaying the message with the output of the command being what is shown.

For example, if usera sent a message that said "test message" , ssh.chat would run `newmsg -user "usera" -msg "test message" and post the output of the message if the newmsg command exists.

Hiya, I appreciate the thought but this is out of scope for the project.

One of the goals is to keep the deployment as secure as possible, and this would open us up to all kinds of remote execution attacks.

You're welcome to modify the source code and run your own modded version though!