Introduction
Introduction Statistics Contact Development Disclaimer Help
Add abandonware game bored support to annna. - annna - Annna the nice friendly …
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit bb90b3990d0b00443713a4830cc1bf4d91254a55
parent a2718601cce2df3fe8f995d3491730b307c2583f
Author: Annna Robert-Houdin <[email protected]>
Date: Mon, 27 Jul 2020 14:16:01 +0200
Add abandonware game bored support to annna.
Diffstat:
A abandonware-random-game | 9 +++++++++
M annna-start-services | 11 ++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/abandonware-random-game b/abandonware-random-game
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+hurl https://www.abandonwaredos.com/random-games.php \
+ | xml2tsv 2>/dev/null \
+ | grep 'li/div/div/a' \
+ | sed 's,.*href=\([^ \t]*\)[ \t]*\([^\t]*\),\2 ( https://www.abandonwa…
+ | shuf \
+ | head -n 1
+
diff --git a/annna-start-services b/annna-start-services
@@ -323,7 +323,16 @@ annna_common() {
"${botname}, please turn me on.")
annna-say -c "${channel}" "☞ ⏻ ${user}"
;;
- "${botname}, I'm bored")
+ "${botname}, I'm game bored.")
+ gamelink="$(abandonware-random-game)"
+ if [ -z "${gamelink}" ];
+ then
+ annna-say -c "${channel}" "${user}, sorry I have found…
+ else
+ annna-say -c "${channel}" "${user}, have you tried ${g…
+ fi
+ ;;
+ "${botname}, I'm gopher bored.")
randomlink="$(/br/bin/bitreich-lawn-random-link)"
linktype="$(printf "%s\n" "${randomlink}" | cut -d '|' -f1 | c…
linktext="$(printf "%s\n" "${randomlink}" | cut -d '|' -f2)"
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.