Merge pull request #9 from zanjie1999/main

增加messagePostFormat的env,允许修改使用cq码字符串上报消息
This commit is contained in:
风宝宝 2024-04-23 18:41:20 +08:00 committed by GitHub
commit 0c32e3e4f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,6 +91,10 @@ if [ ! -f "$CONFIG_PATH" ]; then
else
sed -i "s/RSM_ENABLE/false/" $CONFIG_PATH
fi
if [ "$MESSAGE_POST_FORMAT" ]; then
sed -i "s/\"messagePostFormat\": \"array\"/\"messagePostFormat\": \"$MESSAGE_POST_FORMAT\"/" $CONFIG_PATH
fi
fi
export FFMPEG_PATH=/usr/bin/ffmpeg