mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
AutoRespond: Support for per-match cooldown (#593)
Prevent a match from triggering too often using a cooldown By default, matches do not have a cooldown (it's opt-in) Also add translation support and more debug messages
This commit is contained in:
parent
e6b2b87366
commit
b9935ab8fa
4 changed files with 87 additions and 16 deletions
|
|
@ -9,6 +9,7 @@
|
|||
# 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
|
||||
# Matches can have a cooldown, specified in seconds
|
||||
|
||||
# When running a script from an AutoRespond match,
|
||||
# additional %variables% are available from within your script:
|
||||
|
|
@ -23,6 +24,7 @@ action=send hi, $u!
|
|||
actionprivate=send /tell $u Hello!
|
||||
actionother=log detected "hi" message
|
||||
ownersonly=false
|
||||
cooldown=0
|
||||
|
||||
# You do not need to specify all the "action" fields
|
||||
# Only one of them is required for each match
|
||||
|
|
@ -54,5 +56,12 @@ match=gohome
|
|||
actionprivate=send /home
|
||||
ownersonly=true
|
||||
|
||||
# Example of match with 1-minute cooldown
|
||||
|
||||
[Match]
|
||||
match=hello
|
||||
action=send hello!
|
||||
cooldown=60
|
||||
|
||||
# Enjoy!
|
||||
# - ORelio
|
||||
Loading…
Add table
Add a link
Reference in a new issue