import commands2 import magicbot class GenieRobot(magicbot.MagicRobot): def robotPeriodic(self) -> None: commands2.CommandScheduler.getInstance().run() return super().robotPeriodic() def scheduleCommand(self, command: commands2.Command) -> None: """ Schedule a command to run. This is a wrapper around :meth:`CommandScheduler.add` that allows you to schedule commands. :param command: The command to schedule """ inst = commands2.CommandScheduler.getInstance() inst.schedule(command) def disabledPeriodic(self): pass