diff options
| author | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2026-04-22 17:58:17 +0200 |
|---|---|---|
| committer | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2026-04-22 17:58:17 +0200 |
| commit | f2dbf0287bce2db29c21e2fc9311f379993b5a58 (patch) | |
| tree | e3fb315455c3b430d40603651d65ea304187da7a | |
| parent | 7012f25bdbf3253cfe2c26663c065eaa4c978ace (diff) | |
fix color escaping
| -rwxr-xr-x | tts.sh | 2 | ||||
| -rw-r--r-- | tts/init.lua | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -3,6 +3,6 @@ grep --line-buffered -F "[CHATTTS]"|grep --line-buffered -F "<"|while read line do pitch=$(echo $line|awk -F"[<>]" '{print $2}'| sha256sum | grep -Eo "[[:digit:]]{2}" | head -n1) - msg=$(echo $line|sed 's/@#[A-Za-z0-9]\{6\})//g;s/^[^>]*>//') + msg=$(echo $line|sed 's/^[^>]*>//') echo $msg|espeak -p $pitch done diff --git a/tts/init.lua b/tts/init.lua index 05db6a4..2f7bb99 100644 --- a/tts/init.lua +++ b/tts/init.lua @@ -1,4 +1,4 @@ core.register_on_receiving_chat_message(function(message) - core.log("action", "[CHATTTS] " .. message) + core.log("action", "[CHATTTS] " .. core.strip_colors(message)) return false end) |
