Is there a way to make the bot periodically send a command in chat? #2264
-
The sever I want to AFK on uses a hub system, and there is no way to directly join the survival sever (the sever that I want to AFK on). What I want the bot to do is to just send "/join survival" every 5 minutes or so (if i'm already in the sever it'll just say "invalid command" so it wont do any harm |
Beta Was this translation helpful? Give feedback.
Answered by
BruceChenQAQ
Oct 12, 2022
Replies: 1 comment 1 reply
-
You can use AntiAFK [ChatBot.AntiAFK]
Enabled = true
Delay = { min = 300.0, max = 300.0 }
Command = "/join survival"
Use_Sneak = false
Use_Terrain_Handling = false
Walk_Range = 5
Walk_Retries = 20 Or ScriptScheduler [ChatBot.ScriptScheduler]
Enabled = true
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Join Survival"
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 /join survival" Or just execute it after entering the server [ChatBot.ScriptScheduler]
Enabled = true
[[ChatBot.ScriptScheduler.TaskList]]
Task_Name = "Join Survival"
Trigger_On_First_Login = false
Trigger_On_Login = true
Trigger_On_Times = { Enable = false, Times = [ ] }
Trigger_On_Interval = { Enable = false, MinTime = 10.0, MaxTime = 10.0 }
Action = "send /join survival" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use AntiAFK
Or ScriptScheduler
Or just execute it after entering the server