Action_Guten_Morgen.py 577 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. from hermes_python.ontology import *
  3. from hermes_python.hermes import Hermes
  4. from hermes_python.ontology import MqttOptions
  5. from xiSnipsTools import Personality
  6. import datetime
  7. import Action_Base
  8. @Action_Base.Snips("Guten_Morgen","goodMorning")
  9. class Action_Guten_Morgen(Action_Base.Action_Base):
  10. def beforeGetMessage(self,intent_message):
  11. if intent_message is not None:
  12. self.common.modState("angry", -30)
  13. self.common.modState("happyness", 40)
  14. self.common.modState("depresive", -30)
  15. return True