TriggerLauncher.py 654 B

123456789101112131415161718192021222324
  1. import logging
  2. logging.basicConfig()
  3. logger = logging.getLogger("jarvis")
  4. class TriggerLauncher(object):
  5. def __init__(self):
  6. pass
  7. @classmethod
  8. def start_trigger(cls, trigger_name, callback, parameters=None):
  9. """
  10. :param trigger_name: Name of the trigger class to instantiate
  11. :param callback: Callback function to call when the trigger
  12. catch the magic word
  13. :param parameters: Dict of parameter to send to the trigger
  14. :return:
  15. """
  16. pass
  17. # plugin = neuron.name.capitalize()
  18. # plugin = plugin.capitalize()
  19. # _run_plugin(plugin, neuron.parameters)