__init__.py 589 B

12345678910111213141516171819202122232425262728293031323334
  1. import logging
  2. import audio_output
  3. import console
  4. import slack_bot
  5. SERVICES = [
  6. #audio_output.AudioOutput(),
  7. console.Console(),
  8. slack_bot.SlackBot(),
  9. ]
  10. def success():
  11. for service in SERVICES:
  12. service.success()
  13. def failure(s=None):
  14. for service in SERVICES:
  15. service.failure(s)
  16. def cancelled():
  17. for service in SERVICES:
  18. service.cancelled()
  19. def tts(s):
  20. for service in SERVICES:
  21. service.tts(s)
  22. def text(s):
  23. for service in SERVICES:
  24. service.text(s)
  25. def debug(s):
  26. for service in SERVICES:
  27. service.debug(s)