mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add 'other' messages support in AutoRespond
This commit is contained in:
parent
12b94996c7
commit
de4322458a
2 changed files with 57 additions and 31 deletions
|
|
@ -4,8 +4,9 @@
|
|||
|
||||
# Structure of a match: [Match] Followed by the match and action
|
||||
# The match can be a simple match or an advanced regular expression
|
||||
# You can define a different action if the match was in a private message
|
||||
# You can use $u for username of the player triggering the match
|
||||
# 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
|
||||
|
||||
# Simple example: Respond to a message containing a keyword
|
||||
|
|
@ -14,19 +15,30 @@
|
|||
match=hi
|
||||
action=send hi, $u!
|
||||
actionprivate=send /tell $u Hello!
|
||||
actionother=log detected "hi" message
|
||||
|
||||
# You do not need to specify all the "action" fields
|
||||
# Only one of them is required for each match
|
||||
|
||||
# Advanced example: Use a regular expression
|
||||
# Here a "regex" field is used instead of "match" field
|
||||
# Do not use both "regex" and "match" fields...
|
||||
|
||||
[Match]
|
||||
regex=^.*hello ([a-zA-Z0-9_]+).*$
|
||||
action=send hello too, $1!
|
||||
|
||||
# You can also use any other internal command
|
||||
# Private action is optional
|
||||
# Example of using a script
|
||||
|
||||
[Match]
|
||||
match=dotest
|
||||
action=script test
|
||||
|
||||
# Example of matching a server announcement
|
||||
|
||||
[Match]
|
||||
match=server is restarting
|
||||
actionother=script restart
|
||||
|
||||
# Enjoy!
|
||||
# - ORelio
|
||||
Loading…
Add table
Add a link
Reference in a new issue