Allow restricting AutoRespond matches to bot owner

Suggestion by AppleCidar in #184
This commit is contained in:
ORelio 2016-08-21 19:50:56 +02:00
parent 881e080fd6
commit a4cc36ce05
4 changed files with 61 additions and 24 deletions

View file

@ -8,6 +8,7 @@
# You can define an action if the match was in a private message
# You can define an action if the match was not sent by a player
# Regex matches are also supported eg $1, $2, $3.. in actions
# Matches can optionally be restricted to bot owners only
# Simple example: Respond to a message containing a keyword
@ -16,6 +17,7 @@ match=hi
action=send hi, $u!
actionprivate=send /tell $u Hello!
actionother=log detected "hi" message
ownersonly=false
# You do not need to specify all the "action" fields
# Only one of them is required for each match
@ -40,5 +42,12 @@ action=script test
match=server is restarting
actionother=script restart
# Example of custom remote control command
[Match]
match=gohome
actionprivate=send /home
ownersonly=true
# Enjoy!
# - ORelio