aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2026-04-22 17:58:17 +0200
committervulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2026-04-22 17:58:17 +0200
commitf2dbf0287bce2db29c21e2fc9311f379993b5a58 (patch)
treee3fb315455c3b430d40603651d65ea304187da7a
parent7012f25bdbf3253cfe2c26663c065eaa4c978ace (diff)
fix color escaping
-rwxr-xr-xtts.sh2
-rw-r--r--tts/init.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/tts.sh b/tts.sh
index 089ca33..83e8737 100755
--- a/tts.sh
+++ b/tts.sh
@@ -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)