Determines whether a specified command is enabled. The function retrieves the command using its ID.
If the command is not found, it returns None; otherwise, it returns a Boolean indicating whether the command is enabled.
planetcnc.cmd_is_enabled(cmd_id)
#! /usr/bin/env python import planetcnc # Check if command with ID 42 is enabled. enabled = planetcnc.cmd_is_enabled(42) if enabled is None: print("Command not found.") elif enabled: print("Command is enabled.") else: print("Command is disabled.")