diff config.weather.example @ 600:90da5691cc81

weather: Use new command matching.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 04 Feb 2021 12:16:32 +0200
parents 84e2f0dab633
children de6cab61061f
line wrap: on
line diff
--- a/config.weather.example	Thu Feb 04 12:15:54 2021 +0200
+++ b/config.weather.example	Thu Feb 04 12:16:32 2021 +0200
@@ -22,6 +22,18 @@
 set weather_cmd_name "!saa"
 
 
+# Sub-command name regexp patterns
+array set weather_commands {
+  "help" {^(\?|help|apua)$}
+  "stations" {^(stations|asemat)$}
+  "nearest" {^(lahin|lähin|lähin|closest|nearest)$}
+  "default" {^(vakiot?|defaults?)$}
+  "alias" {^(alias)$}
+  "unalias" {^(unalias)$}
+  "list" {^(list|listaa?)$}
+}
+
+
 ###
 ### Settings
 ###