Skip to content

Commit

Permalink
feat: пауза
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Feb 16, 2019
1 parent fafb9df commit fe86130
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/commands/core/pause.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// пауза, пользователь молчит
module.exports = {
intent: 'pause',
matcher: 'пауза',

async handler(ctx) {
ctx.chatbase.setNotHandled();
return ctx.reply('...');
}
};
4 changes: 4 additions & 0 deletions static/scenarios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
- ping
- tests: [ { contains: "" } ] # хак, принимает любой ответ

"пауза":
- пауза
- tests: [ { contains: "..." } ] # хак, принимает любой ответ

"тур":
- тур
- tests: [ { contains: в магазине надо купить хлеб } ]
Expand Down

0 comments on commit fe86130

Please sign in to comment.