import logging import audio_output import console import slack_bot import conf SERVICES = [ console.Console(), ] if conf.ENABLE_SOUND_OUTPUT: SERVICES.append(audio_output.AudioOutput()) if conf.SLACK_BOT_API_KEY: SERVICES.append(slack_bot.SlackBot()) def success(): for service in SERVICES: service.success() def failure(s=None): for service in SERVICES: service.failure(s) def cancelled(): for service in SERVICES: service.cancelled() def tts(s): for service in SERVICES: service.tts(s) def text(s): for service in SERVICES: service.text(s) def debug(s): for service in SERVICES: service.debug(s)