3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Plugin/ActionTrigger: improve weather example

This commit is contained in:
Pragmatic Software 2020-02-01 23:06:48 -08:00
parent 5a797e84b1
commit 26f9fc7677

View File

@ -22,7 +22,7 @@ package Plugins::ActionTrigger;
# actiontrigger add global 0 300 "some phrase" echo Something! # actiontrigger add global 0 300 "some phrase" echo Something!
# #
# Capture a part of somebody's message. # Capture a part of somebody's message.
# actiontrigger add #channel 0 0 "(?i)how is the weather in (.*) today" weather $1 # actiontrigger add #channel 0 0 "(?i)how is the weather (?:in|for) (.*) today" weather $1
# #
# These are basic examples; more complex examples can be crafted. # These are basic examples; more complex examples can be crafted.