Add zucc filter. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit d989a066c47a12ee20a101d35790dd95a6e3fccd
(DIR) parent 3ffe23be2fcfaf14cb6a1736caffc5d6e9490c53
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
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(-)
---
(DIR) 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/.*\.//')"
(DIR) 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
}