A few updates, cleanup updated weather module.

This commit is contained in:
Storm Dragon
2025-10-24 17:14:52 -04:00
parent 221e14a85a
commit 3669e07a9a
43 changed files with 794 additions and 153 deletions

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env bash
[ -f functions.sh ] && source functions.sh
who="${1%!*}"
@@ -66,7 +67,7 @@ keywords[vim]="msg \"$chan\" \"$(shuf -n1 -e \
wordList="$(echo "${@,,}" | tr '[:space:]' $'\n' | sort -u)"
for w in ${wordList//[[:punct:]]/} ; do
if [[ -n "${keywords[${w,,}]}" && "$lastWordMatch" != "${keywords[${w,,}]}" ]]; then
eval ${keywords[${w,,}]}
eval "${keywords[${w,,}]}"
lastWordMatch="${keywords[${w,,}]}"
fi
done