Update new meme count method. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 8db58f46b263a7c1d5a4d1e9a028d9ded6be78b1 | |
parent f5bd2e59e8d07a464ee9ecfac02d7db2d35bac6d | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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() { |