botbuilder
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -172,7 +172,13 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
reply.totalParticipants = ses.message.totalParticipants; | ||
if (!reply.language && ses.message.language) { | ||
reply.language = ses.message.language; | ||
} | ||
_this.emit('reply', reply); | ||
post(_this.options, endpoint, '/bot/v1.0/messages', reply, function (err) { | ||
post(_this.options, endpoint, '/bot/v1.0/messages', reply, function (err, response) { | ||
if (err) { | ||
_this.emit('error', err); | ||
} | ||
else if (response.statusCode >= 400) { | ||
console.error(response.statusMessage); | ||
} | ||
}); | ||
@@ -184,6 +190,9 @@ } | ||
_this.emit('send', reply); | ||
post(_this.options, endpoint, '/bot/v1.0/messages', reply, function (err) { | ||
post(_this.options, endpoint, '/bot/v1.0/messages', reply, function (err, response) { | ||
if (err) { | ||
_this.emit('error', err); | ||
} | ||
else if (response.statusCode >= 400) { | ||
console.error(response.statusMessage); | ||
} | ||
}); | ||
@@ -190,0 +199,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Bot Builder is a dialog system for building rich bots on virtually any platform.", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
236690
5071