update hello world command return struct
This commit is contained in:
parent
bb3606b35b
commit
ceb522b21f
@ -448,7 +448,7 @@ const addYoutube = async (txt = '', source = {}, db) => {
|
||||
}
|
||||
|
||||
const hello = async () => {
|
||||
return 'Hello World'
|
||||
return {reply: 'Hello World'}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user