Introduction
Introduction Statistics Contact Development Disclaimer Help
Add karma support. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit b28f39ed7123e2508998ce22df1f321ab625f284
parent 36313f863031cd69bf602e01a775467c1a8f1897
Author: Annna Robert-Houdin <[email protected]>
Date: Sat, 15 Jan 2022 20:23:02 +0100
Add karma support.
Diffstat:
M annna-message-common | 9 +++++++++
1 file changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -195,7 +195,16 @@ case "${text}" in
;;
esac
+
+
case "${text}" in
+*++|*--)
+ karma "${text}"
+ ;;
+"${botname}, what the karma?")
+ karmapaste="$(karma | bitreich-paste)"
+ annna-say -s "${server}" -c "${channel}" "${user}, ${karmapaste}"
+ ;;
*"don't care"*)
dontcaresay="$(shuf -n 1 ${idontcaredb})"
annna-say -s "${server}" -c "${channel}" "${user}, ${dontcaresay}"
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.