Adding #wat-is-love tag. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 84d25dd35594a5eebcbf5ec190b6c12a821c3723 DIR parent 73a00a86e0194d8764b850e49409414b463dd0e7 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 31 Jul 2022 14:07:15 +0200 Adding #wat-is-love tag. Diffstat: M annna-message-common | 8 +++++++- M ffmpeg-effect | 5 ----- M modules/hashtags/hashtags.txt | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -875,7 +875,7 @@ case "${text}" in "${botname}, please wat #"*|\ "${botname}, please widen #"*|\ "${botname}, please ww1 #"*|\ -"${botname}, please yellow #"*) +"${botname}, please yellow #"*|\ "${botname}, please zucc #"*) hashtag="$(printf "%s\n" "${text}" | sed 's/.*#//; s/ .*//' )" recipient="$(printf "%s\n" "${text}" | sed 's/.* for //' )" @@ -890,6 +890,12 @@ case "${text}" in [ -f "${outpath}" -a ! -s "${outpath}" ] && rm "${outpath}" + if [ -s "${outpath}" ]; + then + annna-say -s "${server}" -c "${channel}" "${user}, gopher://bitreich.org/9/memecache/filter/${outfile}" + exit 0 + fi + case "${filter}" in antidepressant) outfile="${outfile%.*}.jpg" DIR diff --git a/ffmpeg-effect b/ffmpeg-effect @@ -67,11 +67,6 @@ replace_face() { input="$2" output="$3" - if [ -e "$output" ]; - then - return - fi - ext="$(printf '%s' "$input" | awk -F. '{print $NF}')" tmp=/tmp/replace_face_$$.$ext DIR diff --git a/modules/hashtags/hashtags.txt b/modules/hashtags/hashtags.txt @@ -12409,6 +12409,7 @@ #wasted gopher://bitreich.org/9/memecache/wasted.webm #wasting-money gopher://bitreich.org/I/memecache/wasting-money.png #wat gopher://bitreich.org/I/memecache/wat.jpg +#wat-is-love gopher://bitreich.org/9/memecache/wat-is-love.mkv #wat-jpeg gopher://bitreich.org/9/memecache/wat-jpeg.mkv #wat-wat gopher://bitreich.org/g/memecache/wat-wat.gif #watch-cat gopher://bitreich.org/9/memecache/watch-cat.mp4