from rasa_core_sdk import Action

class TellAJokeAction(Action):
    '''
    获取笑话资源
    '''
    def name(self):
        return "action_tell_a_joke"
  
    def run(self, dispatcher, tracker, domain):
        # send utter default template to user
        dispatcher.utter_message("从前有座山")
        # ... other code
        return []
72853bcaec74921ac909bfa68d185e72cfb1d81c
<mask token>


class TellAJokeAction(Action):
    <mask token>
    <mask token>

    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message('从前有座山')
        return []

<mask token>


class TellAJokeAction(Action):
    <mask token>

    def name(self):
        return 'action_tell_a_joke'

    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message('从前有座山')
        return []

<mask token>


class TellAJokeAction(Action):
    """
    获取笑话资源
    """

    def name(self):
        return 'action_tell_a_joke'

    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message('从前有座山')
        return []

from rasa_core_sdk import Action


class TellAJokeAction(Action):
    """
    获取笑话资源
    """

    def name(self):
        return 'action_tell_a_joke'

    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message('从前有座山')
        return []

from rasa_core_sdk import Action

class TellAJokeAction(Action):
    '''
    获取笑话资源
    '''
    def name(self):
        return "action_tell_a_joke"
  
    def run(self, dispatcher, tracker, domain):
        # send utter default template to user
        dispatcher.utter_message("从前有座山")
        # ... other code
        return []