Skip to content

Commit

Permalink
Remove default no command message
Browse files Browse the repository at this point in the history
  • Loading branch information
Weetbix committed Jan 3, 2016
1 parent 7b7d3e6 commit 5c1d126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions lib/facebot.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,10 @@ Facebot.prototype.respondToCommands = function(command, message){
else if(command == "status"){
response = "Facebook is currently *" + (this.facebookApi ? "connected*" : "not connected*");
}
else {
response = "Hi. I'm a robot. 1010110.\n" +
"I can connect facebook messenger chats to slack channels. " +
"To connect a chat, create a new private channel and invite me. " +
"Type `help` for more info";
}

this.postMessage(message.channel, response, { as_user: true });
if(response){
this.postMessage(message.channel, response, { as_user: true });
}
}

// Posts a list of the currently linked chats, to the channel the
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "facebot",
"version": "0.0.6",
"version": "0.0.7",
"description": "Facebook messenger integration in slack",
"main": "lib/facebot.js",
"scripts": {
Expand Down

0 comments on commit 5c1d126

Please sign in to comment.