Alerts ChatBot: Support trigger on weather change

This commit is contained in:
BruceChen 2022-10-03 11:39:25 +08:00
parent 1d52d1eadd
commit 81a9955081
8 changed files with 147 additions and 19 deletions

View file

@ -131,6 +131,9 @@ skin_pants_right=false
# Get alerted when specified words are detected in chat
# Useful for moderating your server or detecting when someone is talking to you
enabled=false
trigger_by_words=false # Triggers an alert after receiving a specified keyword.
trigger_by_rain=false # Trigger alerts when it rains and when it stops.
trigger_by_thunderstorm=false # Triggers alerts at the beginning and end of thunderstorms.
alertsfile=alerts.txt # List of words/strings to alert you on, e.g. "Yourname"
excludesfile=alerts-exclude.txt # List of words/strings to NOT alert you on, e.g. "<Yourname>"
beeponalert=true # Play a beep sound when a word is detected in addition to highlighting

View file

@ -444,6 +444,12 @@ cmd.useitem.use=Used an item
[bot]
# ChatBots. Naming style: bot.<className>.<msg...>
# Alerts
bot.alerts.start_rain=§cWeather change: It's raining now.§r
bot.alerts.end_rain=§cWeather change: It's no longer raining.§r
bot.alerts.start_thunderstorm=§cWeather change: It's a thunderstorm.§r
bot.alerts.end_thunderstorm=§cWeather change: It's no longer a thunderstorm.§r
# Anti AFK
bot.antiafk.not_using_terrain_handling=The terrain handling is not enabled in the settings of the client, enable it if you want to use it with this bot. Using alternative (command) method.
bot.antiafk.invalid_range_partial=Invalid time range provided, using the first part of the range {0} as the time!