I wrote a custom script for this, I'm running it on the same server as CS2 using Node.
High-level logic:
1. Connect to the server via Rcon and run these commands:
Code:
log on; logaddress_delall_http; logaddress_add_http "http://localhost:8000/log"
2. Listen to incoming log messages that will include the chat
3. Parse logs via a regex and get the chat messages
4. Use rcon to run the console commands based on message contents.