Skip to content

Looping Chat Message Sender #2453

Closed Answered by milutinke
SpinachIsDelicious asked this question in Q&A
Discussion options

You must be logged in to vote

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 myscript.txt
Put the foll…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SpinachIsDelicious
Comment options

Answer selected by milutinke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants