Skip to content

v4.1 RCON fixes, server_command() update, and other QoS update

Compare
Choose a tag to compare
@0n1udra 0n1udra released this 16 Jun 04:28
· 631 commits to master since this release

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 update server_active boolean so the other commands will work.
  • mc_command is now server_command, will also check if server status and update server_active accordingly.
    • Also, removed bot_ctx parameter.
  • New ?check command can check if server is active and reachable.
  • New ?setchannel and ?resetchannel functions to set channel_id variable so bot can message without a ctx.
  • 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.