Skip to content

Commit

Permalink
fix: какие, спасибо
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Feb 16, 2019
1 parent dbc7a0e commit 08040eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/commands/core/compliment.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
'хорошо',
'правильно',
'правильно молодец',
'класс'
'класс',
'спасибо умничка'
],

handler(ctx) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/core/thankyou.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
intent: 'thankyou',
matcher: ['спс', 'все спасибо', 'спасибо', 'благодарю', 'спасибо умничка', 'спасибо тебе'],
matcher: /(спс|спасибо|благодарю)/,

handler(ctx) {
ctx.chatbase.setAsFeedback();
Expand Down
4 changes: 3 additions & 1 deletion src/entities/shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ module.exports = () => (ctx, next) => {
'удаль',
'забыть',
'вычеркнуть',
'показаться'
'показаться',

'какие' // какие покупки
];
if (shopWords.filter(word => infs.indexOf(word) != -1).length > 0 || knownMatcher(ctx)) {
ctx.entities.shop.action = 'list';
Expand Down

0 comments on commit 08040eb

Please sign in to comment.