Inconsequential commit wherein handleFollow screams about a new follower.
parent
99ccc692ba
commit
5dd333285d
|
@ -1 +1,2 @@
|
||||||
config.json
|
config.json
|
||||||
|
node_modules
|
||||||
|
|
5
index.js
5
index.js
|
@ -58,7 +58,10 @@ var handleTweet = function(tweet) {
|
||||||
This function is called whenever the stream receives a 'follow' user event. This will trigger the activateUser for the given user_id.
|
This function is called whenever the stream receives a 'follow' user event. This will trigger the activateUser for the given user_id.
|
||||||
*/
|
*/
|
||||||
var handleFollow = function(event) {
|
var handleFollow = function(event) {
|
||||||
console.log(event);
|
var id = event.source.id;
|
||||||
|
var name = event.source.name;
|
||||||
|
var screen_name = event.source.screen_name;
|
||||||
|
console.log(name+'/'+screen_name+'('+id+') has entered the game!');
|
||||||
};
|
};
|
||||||
/* handleUnfollow
|
/* handleUnfollow
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue