Add zucc filter. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit d989a066c47a12ee20a101d35790dd95a6e3fccd | |
parent 3ffe23be2fcfaf14cb6a1736caffc5d6e9490c53 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sun, 31 Jul 2022 13:49:24 +0200 | |
Add zucc filter. | |
Diffstat: | |
M annna-message-common | 1 + | |
M ffmpeg-effect | 2 ++ | |
2 files changed, 3 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -876,6 +876,7 @@ case "${text}" in | |
"${botname}, please widen #"*|\ | |
"${botname}, please ww1 #"*|\ | |
"${botname}, please yellow #"*) | |
+"${botname}, please zucc #"*) | |
hashtag="$(printf "%s\n" "${text}" | sed 's/.*#//; s/ .*//' )" | |
recipient="$(printf "%s\n" "${text}" | sed 's/.* for //' )" | |
origext="$(grep -E "^#${hashtag} " "${hashtagfile}" | sed 's/.*\.//')" | |
diff --git a/ffmpeg-effect b/ffmpeg-effect | |
@@ -172,6 +172,8 @@ process_filter() { | |
mix_audio "${mediadir}/ww1.mp3" "$2" "$3";; | |
yellow) | |
mix_audio "${mediadir}/yellow.opus" "$2" "$3";; | |
+ zucc) | |
+ replace_face "${mediadir}/zucc.png" "$2" "$3";; | |
*) usage;; | |
esac | |
} |