Beispiel #1
0
 async def _create_notifiers(self, in_backtesting):
     notifier_factory = service_api.create_notifier_factory(
         self.octobot.config)
     notifier_list = notifier_factory.get_available_notifiers()
     for notifier_class in notifier_list:
         await self._create_notifier_class_if_relevant(
             notifier_factory, notifier_class, in_backtesting,
             self.octobot.get_edited_config(constants.CONFIG_KEY))
Beispiel #2
0
def get_notifiers_list():
    return [
        service.instance().get_type() for notifier in
        services_api.create_notifier_factory({}).get_available_notifiers()
        for service in notifier.REQUIRED_SERVICES
    ]