Introduction
Introduction Statistics Contact Development Disclaimer Help
Add imgur handler. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 6a224e810588f8216ec72b299f32cb79114a02a8
parent da8e08a4ae67e37f37cb23b5aaf9ebe4e24e3b2f
Author: Annna Robert-Houdin <[email protected]>
Date: Fri, 23 Jul 2021 20:33:30 +0200
Add imgur handler.
Diffstat:
M annna-message-common | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -80,6 +80,10 @@ case "${text}" in
nuris="$(printf '%s' "${uri}" | sed 's/blob/raw/')"
nocuri=0
;;
+
+ *imgur.com/*)
+ nuris="$(youtube-dl -g "${uri}")"
+ ;;
*lichess.org/????????|*lichess.org/????????/|*lichess.org/????…
nuris="$(printf "%s\n" "${uri}" \
| sed 's,https://lichess.org\(/[^ ]*\)$,\1,; s…
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.