Repository navigation
How can I routinely send a command along with try to join a server if it shuts down #3212
Replies: 2 comments 4 replies
|
I found this related post but not sure how to get to tasks.ini "the way i have it working is: then in the tasks.ini file for the script i have: |
|
The Use Auto Relog for reconnecting, and Script Scheduler for timed commands/scripts. For example, a fixed 5-minute reconnect retry plus a command every 5 minutes would look like this: [ChatBot.AutoRelog]
Enabled = true
Delay = { min = 300.0, max = 300.0 }
Retries = -1
# Set this only if you really want to reconnect after any kick/login rejection:
Ignore_Kick_Message = false
[ChatBot.ScriptScheduler]
Enabled = true
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "send command every 5 minutes"
Trigger_On_First_Login = false
Trigger_On_Login = false
Trigger_On_Times = { Enable = false, Times = [] }
Trigger_On_Interval = { Enable = true, MinTime = 300.0, MaxTime = 300.0 }
Action = "send /yourcommand"If you want to run a script file instead of one command, make the action If this solves it, please mark the reply as the answer. |


Uh oh!
There was an error while loading. Please reload this page.
I am new to this whole thing not really understanding much but was wondering if theres a way to force a connection to a server every like 5 minutes and also send commands on a time basis, thank you
All reactions