Update new meme count method. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 8db58f46b263a7c1d5a4d1e9a028d9ded6be78b1
(DIR) parent f5bd2e59e8d07a464ee9ecfac02d7db2d35bac6d
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Mon, 25 Dec 2023 21:10:03 +0100
Update new meme count method.
Diffstat:
M annna-message-common | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/annna-message-common b/annna-message-common
@@ -24,7 +24,10 @@ hashtags() {
}
hashtagcount() {
- int2bit "$(wc -l ${hashtagfile} | cut -d' ' -f 1)"
+ int2bit "$(curl -s gophers://bitreich.org/1/meme/count \
+ | grep total \
+ | head -n 1 \
+ | sed 's,.*total on .*: \([0-9]*\)),\1,')"
}
regeximatch() {