From 728e5dcee6f288664049d3f285c0f8beb47c6344 Mon Sep 17 00:00:00 2001 From: Abhijeet Kaur Date: Sun, 28 May 2017 05:07:32 +0530 Subject: [PATCH] bots: Modify 'virtual_fs' bot to respond with help message on bot mention. Earlier, if virtual_fs bot is called without any argument, then the bot returns nothing. Now, virtual_fs bot replies with help message on how the user can call this bot. --- contrib_bots/bots/virtual_fs/virtual_fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib_bots/bots/virtual_fs/virtual_fs.py b/contrib_bots/bots/virtual_fs/virtual_fs.py index 7a9c824..a96aec4 100644 --- a/contrib_bots/bots/virtual_fs/virtual_fs.py +++ b/contrib_bots/bots/virtual_fs/virtual_fs.py @@ -10,7 +10,7 @@ class VirtualFsHandler(object): def handle_message(self, message, client, state_handler): command = message['content'] if command == "": - return + command = "help" sender = message['sender_email'] state = state_handler.get_state()