slackinator
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -192,6 +192,11 @@ var _ = require('lodash') | ||
// Take the text of the first attachment that has a fallback | ||
if (message.attachments && message.attachments.length) { | ||
return _(message.attachments).find(function(a) { | ||
var attch = _(message.attachments).find(function(a) { | ||
return a.fallback.length | ||
}).result('fallback') | ||
}) | ||
if (attch) { | ||
return _.result(attch, 'fallback') | ||
} | ||
} | ||
@@ -198,0 +203,0 @@ |
{ | ||
"name": "slackinator", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A library for easily creating slack bots", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
10288
8
240