def find_commands(self): self.commands = [] utils.find_functions(self.settings.packages, self.commands, 'commands', 'disabled_commands', when=lambda f: hasattr(f, 'command'))
def find_timers(self): self.timers = [] utils.find_functions(self.settings.packages, self.timers, 'timers', 'disabled_timers', when=lambda f: hasattr(f, 'timer'), ret=lambda f: f.timer)
def find_timers(self): self.timers = [] utils.find_functions( self.settings.packages, self.timers, 'timers', 'disabled_timers', when=lambda f: hasattr(f, 'timer'), ret=lambda f: f.timer)
def find_commands(self): self.commands = [] utils.find_functions( self.settings.packages, self.commands, 'commands', 'disabled_commands', when=lambda f: hasattr(f, 'command'))