jazzyjackson / convolos

Giving sudo access to chatbot personalities, a web server cooperative based on conversation.
https://convolos.xyz
0 stars 0 forks source link

Get the fastest possible TCP response #1

Open jazzyjackson opened 6 years ago

jazzyjackson commented 6 years ago

Body of request will be JSON shell script will be invoked, JSON piped to stdin {bot, user, message: STING/JSON} shell script just needs to format botnullusernull...

via https://unix.stackexchange.com/questions/347390/bash-cant-store-hexvalue-0x00-in-variable/347409

looks like I can printf bot\x00user\x00message\x00

and then just print the response (don't bother checking if its json or not, raw is fine... maybe write that chatscript to output response with " to make strings valid JSON, duh

invoking chatscript as an executable shell script from the client side should give the fasted possible responses, so by the time you finish talking, chrome has detected what you said and chatscript has already evaluated a response