mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
Plugins/ActionTrigger: fix msg example comment
This commit is contained in:
parent
3cd42d9e4f
commit
4385c931f9
@ -16,7 +16,7 @@ use parent 'Plugins::Plugin';
|
|||||||
# actiontrigger add #channel none 0 ^(?i)([^!]+)![^\s]+.JOIN echo Hi $1, welcome to $channel!
|
# actiontrigger add #channel none 0 ^(?i)([^!]+)![^\s]+.JOIN echo Hi $1, welcome to $channel!
|
||||||
#
|
#
|
||||||
# Same, but via private message (set capability to "admin" to use `msg` admin command):
|
# Same, but via private message (set capability to "admin" to use `msg` admin command):
|
||||||
# actiontrigger add #channel admin 0 ^(?i)([^!]+)![^\s]+.JOIN msg Hi $1, welcome to $channel!
|
# actiontrigger add #channel admin 0 ^(?i)([^!]+)![^\s]+.JOIN msg $1 Hi $1, welcome to $channel!
|
||||||
#
|
#
|
||||||
# Kick a nick if they say a naughty thing. Set capability to "can-kick" to use `kick` admin command.
|
# Kick a nick if they say a naughty thing. Set capability to "can-kick" to use `kick` admin command.
|
||||||
# actiontrigger add global can-kick 0 "^(?i)([^!]+)![^\s]+.PRIVMSG.*bad phrase" kick $1 Do you talk to your mother with that mouth?
|
# actiontrigger add global can-kick 0 "^(?i)([^!]+)![^\s]+.PRIVMSG.*bad phrase" kick $1 Do you talk to your mother with that mouth?
|
||||||
@ -28,6 +28,8 @@ use parent 'Plugins::Plugin';
|
|||||||
# actiontrigger add #channel none 0 "(?i)how is the weather (?:in|for) (.*) today" weather $1
|
# actiontrigger add #channel none 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.
|
||||||
|
#
|
||||||
|
# TODO: share actually useful examples from personal bot
|
||||||
|
|
||||||
use warnings; use strict;
|
use warnings; use strict;
|
||||||
use feature 'unicode_strings';
|
use feature 'unicode_strings';
|
||||||
|
Loading…
Reference in New Issue
Block a user