Closed minecraftchest1 closed 3 years ago
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!
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.