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")
await self.tree.sync()
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")
await self.tree.sync()
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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")