Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Деактивация навыка #7

Open
kiryushinsa opened this issue Sep 20, 2019 · 0 comments
Open

Деактивация навыка #7

kiryushinsa opened this issue Sep 20, 2019 · 0 comments

Comments

@kiryushinsa
Copy link

Основываясь на "alice-skills/python/buy-elephant/now/", пытаюсь разобраться в построении навыков. Видоизменив схему ответов попытался реализовать деактивацию навыка.


`    if req['request']['original_utterance'].lower() in [
        'спасибо',
        'выход',
        'алиса,вернись',

    ]:
       
        res['response']['text'] = 'Возвращайся'
        res['response']['end_session'] = True
        return`

Но по какой-то причине деактивация не происходит хотя, на вкладке тестирование, в responce я вижу:

 "response": {
    "end_session": true,
    "text": "Возвращайся"
  }
} 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant