Introduction
Introduction Statistics Contact Development Disclaimer Help
Add barebone for new idlerpg handler. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 8424f3836e46956604bfeb495a659942fa8a74e1
parent 5345c5ad67854a739ed3abc569499e75bc977f54
Author: Annna Robert-Houdin <[email protected]>
Date: Sat, 29 Oct 2022 17:40:58 +0200
Add barebone for new idlerpg handler.
Diffstat:
M annna-channel-service | 3 +++
A annna-message-idle | 25 +++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/annna-channel-service b/annna-channel-service
@@ -25,6 +25,9 @@ do
\#gopherproject)
annna-message-gopherproject "${server}" "${channel}" "${user}"…
;;
+ \#bitreich-idle)
+ annna-message-idle "${server}" "${channel}" "${user}" "${text}"
+ ;;
*)
annna-message-common "${server}" "${channel}" "${user}" "${tex…
;;
diff --git a/annna-message-idle b/annna-message-idle
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+export PATH="$HOME/bin:$PATH"
+
+cfgbase="$(pwd)"
+ircbase="$(cat ${cfgbase}/ircbase)"
+modbase="$(cat ${cfgbase}/modbase)"
+idlebase="${modbase}/idlerpg"
+
+server="$1"
+ircuser="$(cat ${cfgbase}/${server}/ircuser)"
+channel="$2"
+user="$3"
+text="$4"
+
+[ "$user" = "${ircuser}" ] && exit
+
+case "${text}" in
+*)
+ annna-say -c "${channel}" -s "${server}" "${user}, you will be penaliz…
+ ;;
+esac
+
+#annna-message-common "${server}" "${channel}" "${user}" "${text}"
+
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.