From 5c1d12660d447013e0aff2c8f107b1f380759649 Mon Sep 17 00:00:00 2001 From: John Hannagan Date: Sun, 3 Jan 2016 23:15:31 +0800 Subject: [PATCH] Remove default no command message --- lib/facebot.js | 10 +++------- package.json | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/facebot.js b/lib/facebot.js index 09dbbfc..028bce8 100644 --- a/lib/facebot.js +++ b/lib/facebot.js @@ -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 diff --git a/package.json b/package.json index b849742..67934dc 100644 --- a/package.json +++ b/package.json @@ -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": {