Introduction
Introduction Statistics Contact Development Disclaimer Help
enable dalle-generated ::emoji:: syntax inline - annna - Annna the nice friendl…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit cb97a0dd368eed35d9db94ffdc0c577788dfe168
parent 9209aad6a9e525eb0c2b55f46d2a5ca685fa6ff0
Author: Josuah Demangeon <[email protected]>
Date: Sat, 2 Jul 2022 13:47:34 +0200
enable dalle-generated ::emoji:: syntax inline
$ sh -x ./annna-message-common server channel user 'this is ::440:: a t…
[...]
+ query=440:: a test query=440
+ dalle-gen-emoji 440
./annna-message-common[200]: dalle-gen-emoji: not found
+ annna-say -s server -c channel
[...]
Note that an empty message would be sent in case there is an error.
This would help the users to know that something went wrong.
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M annna-message-common | 17 ++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -38,6 +38,10 @@ uri="$(printf "%s\n" "${text}" \
case "${text}" in
*\#nospoil*)
;;
+*::*::*)
+ query=${text#**::} query=${query%%::*}
+ annna-say -s "${server}" -c "${channel}" "$(dalle-gen-emoji "${query}"…
+ ;;
*)
if [ -n "${uri}" ]
then
@@ -196,19 +200,6 @@ case "${text}" in
esac
case "${text}" in
-::*::)
- {
- emojiuri="$(dalle-gen-emoji "${text}")"
- if [ -n "${emojiuri}" ];
- then
- annna-say -s "${server}" -c "${channel}" "${emojiuri}"
- fi
- } &
- exit 0
- ;;
-esac
-
-case "${text}" in
"Thanks ${botname}"*)
annna-say -s "${server}" -c "${channel}" "${user}, you are welcome."
;;
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.