Introduction
Introduction Statistics Contact Development Disclaimer Help
annna-message-common: do not allow more than 1 emoji process at once - annna - …
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit f95fcab1c85a02d2397b4a05e4b1c0b8120440d0
parent 2bf765b38a7ecf2afdd5403308e310223c97d8b0
Author: Anders Damsgaard <[email protected]>
Date: Sat, 4 Nov 2023 12:23:49 +0100
annna-message-common: do not allow more than 1 emoji process at once
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M annna-message-common | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -46,10 +46,15 @@ case "${text}" in
doexpand=1
;;
*::*::*)
- {
- query=${text#**::} query=${query%%::*}
- annna-say -s "${server}" -c "${channel}" "$(stable-diffusion-e…
- } &
+ if pgrep -f stable-diffusion-emoji >/dev/null 2>&1;
+ then
+ annna-say -s "${server}" -c "${channel}" "${user}, no."
+ else
+ {
+ query=${text#**::} query=${query%%::*}
+ annna-say -s "${server}" -c "${channel}" "$(stable-dif…
+ } &
+ fi
;;
*http*://*|*ytdl://*)
case "${text}" in
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.