Add more artifical weather intelligence to annna. - annna - Annna the nice frie… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 50280828f53d6e6bd42348bc2e5bcb5cce1d3944 | |
parent a8369b418fe515a3fb2120aae37491b34fd7a9f6 | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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 |