Introduction
Introduction Statistics Contact Development Disclaimer Help
Add unix power. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 7811fc220730985a7c59433096f067e2c334a3ba
parent 34872aba7471064bdd0f8240374bb98077f132ce
Author: Annna Robert-Houdin <[email protected]>
Date: Fri, 16 Jul 2021 21:49:41 +0200
Add unix power.
Diffstat:
M annna-message-common | 7 +++++++
A unix-power | 9 +++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -230,6 +230,13 @@ case "${text}" in
fi
rm ${tmpf} 2>/dev/null
;;
+"${botname}, please give me the unix power.")
+ upcuri="$(unix-power)"
+ if [ -n "${upcuri}" ];
+ then
+ annna-say -c "${channel}" "${user}, ${upcuri}"
+ fi
+ ;;
"${botname}, play despacito plz.")
annna-say -c "${channel}" "${user}, gopher://bitreich.org/9/memecache/…
;;
diff --git a/unix-power b/unix-power
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+hurl http://vrici.lojban.org/~cowan/upc/ \
+ | xml2tsv 2>/dev/null \
+ | grep txt \
+ | cut -f 2 \
+ | shuf -n 1 \
+ | sed 's,href=\(.*\),http://vrici.lojban.org/~cowan/upc/\1,'
+
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.