Introduction
Introduction Statistics Contact Development Disclaimer Help
Adding #2022 tag. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 147154e206079ffb4d2bf17717d857ac5222a1b6
parent 199fcbb78058b11fcfa02af0fd330584730362a6
Author: Annna Robert-Houdin <[email protected]>
Date: Mon, 8 Aug 2022 18:02:58 +0200
Adding #2022 tag.
Diffstat:
M annna-message-common | 6 +++++-
M modules/hashtags/hashtags.txt | 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -29,9 +29,11 @@ regeximatch() {
printf '%s' "$1" | grep -i -E -q "$2"
}
-#printf "%s %s %s %s\n" "${0##*/}" "${channel}" "${user}" "${text}"
+printf "%s %s %s %s\n" "${0##*/}" "${channel}" "${user}" "${text}"
+set -x
[ "$user" = "${ircuser}" ] && exit 0
+set +x
case "${text}" in
*\#nospoil*)
@@ -1072,6 +1074,7 @@ case "${text}" in
;;
esac
+set -x
printf '%s' "$text" | awk -v taglimit="$printnhashtags" '
$0 !~ /#nospoil/ {
while (match($0, /#[^# /"'\'',?!;$\001]+/)) {
@@ -1094,6 +1097,7 @@ do
fi
fi
done
+set +x
case "${text}" in
*\#nospoil*)
diff --git a/modules/hashtags/hashtags.txt b/modules/hashtags/hashtags.txt
@@ -29,6 +29,7 @@
#2020-us-elections gopher://bitreich.org/I/memecache/2020-us-elections.png
#2021-horsemen gopher://bitreich.org/I/memecache/2021-horsemen.png
#2021-reality gopher://bitreich.org/I/memecache/2021-reality.png
+#2022 gopher://bitreich.org/I/memecache/2022.jpg
#2030 gopher://bitreich.org/I/memecache/2030.jpg
#20h gopher://bitreich.org/I/memecache/20h.png
#20h-accelerating-science gopher://bitreich.org/I/memecache/20h-accelerating-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.