shazow / ssh-chat

Chat over SSH.
https://shazow.net/posts/ssh-how-does-it-even/
MIT License
5.59k stars 408 forks source link

bot api: Forced rename is not reflected in term #362

Open shazow opened 4 years ago

shazow commented 4 years ago

When a TERM=bot joins with a collision name and gets renamed to GuestXXX, the new name is not reflected in the bot's term line. (Should the term line even be present?)

voldyman commented 3 years ago

Tangent Alert

Should the term line even be present?

Should the bot only interact in json?

Overall design i am thinking of:

Since each line will be a well-formed json message, users can optionally use the go lib or pipe the output of ssh to scripts

shazow commented 3 years ago

Yea, an alternative JSON API is certainly desirable, but I think 90% of people want a plaintext API since they're just messing around with shell scripts or equivalent.

And yes, using the Theme system to render JSON was also something I had in mind.