/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License.
 */

module.exports = function(controller) {

    controller.hears('sample','message', async(bot, message) => {
        await bot.reply(message, 'I heard a sample message.');
    });

    controller.on('message', async(bot, message) => {
        await bot.reply(message, `Echo: ${ message.text }`);
    });

}
@@ -169,32 +169,47 @@
 sample','message
+,direct_message
 ', async(bot, me
@@ -212,32 +212,32 @@
 , message) =%3E %7B%0A
-
         await bo
@@ -314,24 +314,39 @@
 .on('message
+,direct_message
 ', async(bot
@@ -431,9 +431,10 @@
    %7D);%0A%0A
-
 %7D
+%0A

Update sample_echo to respond to direct messages