diff --git a/handler/message/index.js b/handler/message/index.js index 8b56bbf..6972069 100644 --- a/handler/message/index.js +++ b/handler/message/index.js @@ -323,7 +323,9 @@ module.exports = msgHandler = async (client = new Client(), message) => { break } default: - console.log(color('[ERROR]', 'red'), color(moment(t * 1000).format('DD/MM/YY HH:mm:ss'), 'yellow'), 'Unregistered Command from', color(pushname)) + if (isGroupMsg) return console.log(color('[ERROR]', 'red'), color(moment(t * 1000).format('DD/MM/YY HH:mm:ss'), 'yellow'), 'Unregistered Command from', color(pushname)) + await client.reply(from, '*Error*, Perintah Tidak Ditemukan, Ketik *#menu* untuk melihat daftar Perintah. [Command not Found]', id) + await console.log(color('[ERROR]', 'red'), color(moment(t * 1000).format('DD/MM/YY HH:mm:ss'), 'yellow'), 'Unregistered Command from', color(pushname)) break } } catch (err) {