update hello world command return struct

This commit is contained in:
Jay 2018-07-12 11:56:16 +08:00
parent bb3606b35b
commit ceb522b21f
2 changed files with 2 additions and 1 deletions

View File

@ -448,7 +448,7 @@ const addYoutube = async (txt = '', source = {}, db) => {
}
const hello = async () => {
return 'Hello World'
return {reply: 'Hello World'}
}
module.exports = {

View File

@ -9,6 +9,7 @@ const parseCMD = async (text = '', source = {}) => {
if (arr.length === 0) return null
if (arr[0][0] !== '!') return null
let cmd = arr[0].replace(/^!/, '')
cmd = cmd.toLowerCase()
let db = await DB.connect()
let reply = null