comparison 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
comparison
equal deleted inserted replaced
599:76d19fa28753 600:90da5691cc81
18 bind msg - !saa weather_cmd_msg 18 bind msg - !saa weather_cmd_msg
19 19
20 20
21 # Name of the command used for help texts 21 # Name of the command used for help texts
22 set weather_cmd_name "!saa" 22 set weather_cmd_name "!saa"
23
24
25 # Sub-command name regexp patterns
26 array set weather_commands {
27 "help" {^(\?|help|apua)$}
28 "stations" {^(stations|asemat)$}
29 "nearest" {^(lahin|lähin|lähin|closest|nearest)$}
30 "default" {^(vakiot?|defaults?)$}
31 "alias" {^(alias)$}
32 "unalias" {^(unalias)$}
33 "list" {^(list|listaa?)$}
34 }
23 35
24 36
25 ### 37 ###
26 ### Settings 38 ### Settings
27 ### 39 ###