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...
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
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