Introduction
Introduction Statistics Contact Development Disclaimer Help
Make posex a common man thing. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 04b8810c4af653bb47f7148f624635e89ff2f84b
parent 045881a05309b02e07b9a0357869a99e1ac610e1
Author: Annna Robert-Houdin <[email protected]>
Date: Tue, 23 Feb 2021 18:56:50 +0100
Make posex a common man thing.
Diffstat:
M annna-start-services | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/annna-start-services b/annna-start-services
@@ -276,19 +276,17 @@ annna_common() {
annna-say -c "${channel}" "${user}, ${randomoneliner}"
fi
;;
- "${botname}, posex man "*|"${botname}, posix man "*)
- exp="$(printf "%s\n" "${text}" | cut -c 18- | sed 's,\t, ,g…
- chapter=1
- case "${exp%% *}" in
- 1|3) chapter="${exp%% *}"; exp="${exp#* }" ;;
- esac
- dresult="$(COLUMNS=80 man "${chapter}p" "${exp}")"
+ "${botname}, man "*|"${botname}, man "*)
+ exp="$(printf "%s\n" "${text}" | cut -c 12- | sed 's,\t, ,g…
+ dresult="$(COLUMNS=80 man "${exp}" 2>/dev/null)"
+
if [ "$dresult" ];
then
puri="$(printf "%s" "${dresult}" | /br/bin/bitreich-pa…
else
puri="No matches found."
fi
+
annna-say -c "${channel}" "${puri}"
;;
"${botname}, wolfram is "*)
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.