wingbot 3.24.3 → 3.24.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Request.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.24.3",
3
+ "version": "3.24.4",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Request.js CHANGED
@@ -322,6 +322,7 @@ class Request {
322
322
  }
323
323
 
324
324
  const text = this.text();
325
+ const knownTexts = new Set();
325
326
 
326
327
  return (aiActions || this._aiActions)
327
328
  .filter((a) => a.title)
@@ -381,6 +382,13 @@ class Request {
381
382
  if (match) Object.assign(res, { match });
382
383
 
383
384
  return res;
385
+ })
386
+ .filter((qr) => {
387
+ if (knownTexts.has(qr.title)) {
388
+ return false;
389
+ }
390
+ knownTexts.add(qr.title);
391
+ return true;
384
392
  });
385
393
  }
386
394