slackbotapi
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -64,3 +64,3 @@ ////////////////////////////////////////////////////////////////// | ||
data = JSON.parse(data); | ||
if(typeof data.type != 'undefined') EventEmitter.emit(slackAPI['events'][data.type], data); | ||
if(typeof data.type != 'undefined' && typeof slackAPI['events'][data.type] !== 'undefined') EventEmitter.emit(slackAPI['events'][data.type], data); | ||
}); | ||
@@ -143,2 +143,4 @@ } | ||
pong: 'pong', | ||
pin_added: 'pin_added', | ||
pin_removed: 'pin_removed', | ||
presence_change: 'presence_change', | ||
@@ -150,2 +152,3 @@ manual_presence_change: 'manual_presence_change', | ||
team_join: 'team_join', | ||
team_migration_started: 'team_migration_started', | ||
star_added: 'star_added', | ||
@@ -155,2 +158,3 @@ star_removed: 'star_removed', | ||
commands_changed: 'commands_changed', | ||
team_plan_change: 'team_plan_change', | ||
team_pref_change: 'team_pref_change', | ||
@@ -157,0 +161,0 @@ team_rename: 'team_rename', |
{ | ||
"name": "slackbotapi", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "a node.js API using Slack their RTM API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
13739
323