From ffd04d8cbe4a7f92b7342df331a2a54eb5ced084 Mon Sep 17 00:00:00 2001 From: Huan LI Date: Wed, 18 Jul 2018 13:42:51 +0800 Subject: [PATCH] Put `async` back to the starter for better understanding with the beginners --- examples/starter-bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/starter-bot.js b/examples/starter-bot.js index bc6453c..944c288 100644 --- a/examples/starter-bot.js +++ b/examples/starter-bot.js @@ -32,6 +32,6 @@ function onLogout(user) { console.log(`${user} logout`) } -function onMessage (msg) { +async function onMessage (msg) { console.log(msg.toString()) }