message: add imgur handling - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit b49765faaacf5cb8b729690c76aebc4261c5d1fa | |
parent fb5c96f71e2d9dd5754b703e5255e018a0c5cacf | |
Author: Quentin Rameau <[email protected]> | |
Date: Fri, 23 Jul 2021 12:57:16 +0200 | |
message: add imgur handling | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-message-common | 3 +++ | |
1 file changed, 3 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -80,6 +80,9 @@ case "${text}" in | |
nuris="$(printf '%s' "${uri}" | sed 's/blob/raw/')" | |
nocuri=0 | |
;; | |
+ *imgur.com/*) | |
+ nuris=$(printf '%s' "${uri}" | sed 's@https\{0,1\}://[… | |
+ ;; | |
*lichess.org/????????|*lichess.org/????????/|*lichess.org/????… | |
nuris="$(printf "%s\n" "${uri}" \ | |
| sed 's,https://lichess.org\(/[^ ]*\)$,\1,; s… |