diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index ceb8d6f7..9c61ab7a 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -187,7 +187,7 @@ class Cognigy extends Task { this.logger.info({}, 'TEST FROM ALEX'); this.logger.info({prompts: this.prompts}, 'Cognigy:_onBotFinalPing'); if (this.prompts.length) { - const text = 'test test test test test'.concat(this.prompts.join('.')); + const text = this.prompts.join('.'); if (text && !this.killed) { this.gatherTask = this._makeGatherTask({textPrompt: text}); this.gatherTask.exec(cs, ep, this) diff --git a/package.json b/package.json index 3a1a1004..aabb469a 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "start": "node app", "test": "NODE_ENV=test JAMBONES_HOSTING=1 DRACHTIO_HOST=127.0.0.1 DRACHTIO_PORT=9060 DRACHTIO_SECRET=cymru JAMBONES_MYSQL_HOST=127.0.0.1 JAMBONES_MYSQL_PORT=3360 JAMBONES_MYSQL_USER=jambones_test JAMBONES_MYSQL_PASSWORD=jambones_test JAMBONES_MYSQL_DATABASE=jambones_test JAMBONES_REDIS_HOST=127.0.0.1 JAMBONES_REDIS_PORT=16379 JAMBONES_LOGLEVEL=debug ENABLE_METRICS=0 HTTP_PORT=3000 JAMBONES_SBCS=172.38.0.10 JAMBONES_FREESWITCH=127.0.0.1:8022:ClueCon:docker-host JAMBONES_TIME_SERIES_HOST=127.0.0.1 JAMBONES_NETWORK_CIDR=172.38.0.0/16 node test/ ", "coverage": "./node_modules/.bin/nyc --reporter html --report-dir ./coverage npm run test", - "jslint": "eslint app.js lib" + "jslint": "eslint app.js lib", + "jslint:fix": "eslint app.js lib --fix" }, "dependencies": { "@cognigy/socket-client": "^4.5.5",