Reformat last patch and move to memecache/wide folder for output - 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 80464afb2e1fdfec3e6eb3f796d1172e12b20304 DIR parent ce3a9c826b2ea86a293b673fbc419e0f113dd8b7 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sat, 15 May 2021 21:04:33 +0200 Reformat last patch and move to memecache/wide folder for output Diffstat: M annna-message-common | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -653,12 +653,14 @@ case "${text}" in hashtag="${text##* \#}" origext="$(grep -E "^#${hashtag} " "${hashtagfile}" | sed 's/.*\.//')" widefile="wide-${hashtag}.${origext}" - { if ffmpeg -n -i "/br/gopher/memecache/${hashtag}.*" \ - -vf "scale=iw*4:ih,crop=iw/4:ih:iw/4:ih,setsar=1" \ - "/br/gopher/wide/${widefile}" - then - annna-say -c "${channel}" "${user}, gopher://bitreich.org/9/wide/${widefile}" - fi } & + { + if ffmpeg -n -i "/br/gopher/memecache/${hashtag}.*" \ + -vf "scale=iw*4:ih,crop=iw/4:ih:iw/4:ih,setsar=1" \ + "/br/gopher/memecache/wide/${widefile}" + then + annna-say -c "${channel}" "${user}, gopher://bitreich.org/9/memecache/wide/${widefile}" + fi + } & ;; "${botname}, please help.") # Help Message.