Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
update version of ciscospark dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Brown committed Feb 14, 2018
1 parent 3b8bc38 commit 3b8e203
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/spark_bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ controller.hears(['^markdown'], 'direct_message,direct_mention', function(bot, m
});

controller.on('user_space_join', function(bot, message) {
bot.reply(message, 'Welcome, ' + message.original_message.data.personDisplayName);
bot.reply(message, 'Welcome, ' + message.raw_message.data.personDisplayName);
});

controller.on('user_space_leave', function(bot, message) {
bot.reply(message, 'Bye, ' + message.original_message.data.personDisplayName);
bot.reply(message, 'Bye, ' + message.raw_message.data.personDisplayName);
});


Expand All @@ -77,8 +77,8 @@ controller.on('direct_mention', function(bot, message) {

controller.on('direct_message', function(bot, message) {
bot.reply(message, 'I got your private message. You said, "' + message.text + '"');
if (message.original_message.files) {
bot.retrieveFileInfo(message.original_message.files[0], function(err, file) {
if (message.raw_message.files) {
bot.retrieveFileInfo(message.raw_message.files[0], function(err, file) {
bot.reply(message,'I also got an attached file called ' + file.filename);
});
}
Expand Down

0 comments on commit 3b8e203

Please sign in to comment.