Toggling army, mail, pup, or piku from the dashboard returns HTTP 400 'Invalid command'.
The quick-toggle whitelist in routes.py only included the original 7 commands. New v1.8.0 features were added to settings.json but the whitelist was never updated.
Add army, mail, pup, piku, autoHuntBot to the VALID_TOGGLES set in routes.py and handle nested config keys (autoHuntBot is under commands.autoHuntBot.enabled).
if command not in ['hunt', 'battle', 'daily', 'owo', 'channelSwitcher', 'useSlashCommands', 'stopHuntingWhenNoGems']:
VALID_TOGGLES = {'hunt','battle','daily','owo','channelSwitcher','useSlashCommands','stopHuntingWhenNoGems','army','mail','pup','piku','autoHuntBot'}
if command not in VALID_TOGGLES: