v4.1 RCON fixes, server_command() update, and other QoS update
Fixing RCON bugs and functionality and other QoS updates.
- Now shows newly updated interval when changing autosave interval.
- Autosave loop now pauses if detects server is unreachable and resumes when back online, by utilizing new
server_active
boolean. - New
server_active
variable, this is mostly for when using RCON. If you try sending multiple commands to an unreachable RCON server, the bot will be held up for a while trying to constantly connect. So this variable will let the bot know if it's active or not.- Only
?check
and?stats
will actually check server status, and if found active will updateserver_active
boolean so the other commands will work.
- Only
mc_command
is nowserver_command
, will also check if server status and updateserver_active
accordingly.- Also, removed
bot_ctx
parameter.
- Also, removed
- New
?check
command can check if server is active and reachable. - New
?setchannel
and?resetchannel
functions to setchannel_id
variable so bot can message without actx
. - Did some code cleanup, docstring updates, refactoring, and renaming functions to make it less confusing, and moved some functions to new
extra_functions.py
file.