Reformat last patch and move to memecache/wide folder for output - annna - Annn… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 80464afb2e1fdfec3e6eb3f796d1172e12b20304 | |
parent ce3a9c826b2ea86a293b673fbc419e0f113dd8b7 | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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/wi… | |
- 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.… | |
+ fi | |
+ } & | |
;; | |
"${botname}, please help.") | |
# Help Message. |