Missing RCON Password Validation #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
if not MINECRAFT_RCON_PASSWORD: # Line 410
# Only checked after user interaction
Issue: Should validate on startup, not during command execution.
Fix:
In CustomBot.init or setup_hook
async def setup_hook(self):
# Validate critical configs
if not MINECRAFT_RCON_PASSWORD:
logger.warning("MINECRAFT_RCON_PASSWORD not set - /minecraft command will fail")
if not PELICAN_API_KEY:
logger.warning("PELICAN_API_KEY not set - Pelican features disabled")