Looping Chat Message Sender #2453
-
How do I make a simple MCC script that types /rebirth (command) into the chat every 15 minutes and then loops again? |
Beta Was this translation helpful? Give feedback.
Answered by
milutinke
Mar 25, 2023
Replies: 1 comment 1 reply
-
You either can use a script, or you can use Script Scheduler chat bot (https://mccteam.github.io/guide/chat-bots.html#defining-a-task) Example for Script Scheduler: [ChatBot.ScriptScheduler]
Enabled = true
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Rebirth command sender"
Trigger_On_First_Login = false
Trigger_On_Login = true # Triggers the task once you log in to the server
Trigger_On_Times = { Enable = false, Times = [ 14:00:00, ] }
Trigger_On_Interval = { Enable = true, MinTime = 900.0, MaxTime = 900.0 } # Loops every 15 minutes (900 seconds)
Action = "send /rebirth" To use a script, make a file, in this example I'll name it
Then use Replace the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
milutinke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You either can use a script, or you can use Script Scheduler chat bot (https://mccteam.github.io/guide/chat-bots.html#defining-a-task)
Example for Script Scheduler:
To use a script, make a file, in this example I'll name it
myscript.txt
Put the foll…