Add more artifical weather intelligence to annna. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 50280828f53d6e6bd42348bc2e5bcb5cce1d3944
(DIR) parent a8369b418fe515a3fb2120aae37491b34fd7a9f6
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Wed, 13 Mar 2024 12:24:08 +0100
Add more artifical weather intelligence to annna.
Thanks bleak!
Diffstat:
M annna-message-common | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/annna-message-common b/annna-message-common
@@ -584,10 +584,10 @@ case "${text}" in
fi
} &
;;
-"${ircuser}, weather at "*)
+"${ircuser}, weather at "*|"${ircuser}, weather in "*)
{
weatherplace="$(printf "%s\n" "${text}" \
- | sed 's,.*weather at \(.*\),\1,' \
+ | sed 's,.*weather .. \(.*\),\1,' \
| tr -d '?')"
if weathertext="$(weather "${weatherplace}")"
then