Skip to content

Conversation

@shazow
Copy link
Owner

@shazow shazow commented Apr 13, 2020

This is the beginning of the bot and api modes for ssh-chat.

Primarily, it disables our custom re-rendering pipeline (which emits a slew of control characters that are increasingly hard to parse for bots), it also disables the message echo'ing and defaults to the mono theme. Should be a very clean output that is easy to parse.

This should also make testing easier.

Comparing outputs, default: (using cat -A)

^[[38;05;245m * me joined. (Connected: 1)^[[0m^M^M$
                                                   [^[[38;05;88mme^[[0m] 

TERM=bot:

 * me joined. (Connected: 1)^M^M$

@shazow shazow marked this pull request as ready for review April 13, 2020 15:33
@shazow
Copy link
Owner Author

shazow commented Apr 13, 2020

cc @peterhellberg, this should help your bot too :) (Also we miss you on ssh-chat!)

@shazow shazow merged commit 3b8e644 into master Apr 16, 2020
@shazow shazow deleted the term-bot branch April 16, 2020 16:48
@shazow shazow mentioned this pull request Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants