Introduction
Introduction Statistics Contact Development Disclaimer Help
Add bithub support to annna. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 5ad6802264efced943731ad5dfa7be0de686ff77
parent a8a2c5df492a6664f2a59ed4691cbd6eaea0f8e0
Author: Annna Robert-Houdin <[email protected]>
Date: Wed, 22 Jul 2020 19:51:59 +0200
Add bithub support to annna.
Diffstat:
M annna-start-services | 2 +-
A bithub-gen | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/annna-start-services b/annna-start-services
@@ -312,7 +312,7 @@ annna_common() {
annna-say -c "${channel}" "${bandname}"
;;
"${botname}, I am horny.")
- essaypaste="$(essay-gen)"
+ essaypaste="$(bithub-gen)"
annna-say -c "${channel}" \
"Here is some intellectual porn for you: ${essaypaste}"
;;
diff --git a/bithub-gen b/bithub-gen
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+export PATH="$PATH:/home/annna/bin"
+
+bithubarchive="/br/gopher/bithub/read_text"
+bithubbaseuri="gopher://bitreich.org/0/bithub/read_text"
+essayurl="$(essay-gen)"
+cd "${bithubarchive}"
+essayfile="$(hurl "${essayurl}" | sed -n "2p;" | tr ' /' '__').txt"
+hurl "${essayurl}" > "${essayfile}"
+
+printf "%s/%s\n" "${bithubbaseuri}" "${essayfile}"
+
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.