Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Update msgHndlr.js #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion msgHndlr.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = msgHandler = async (client, message) => {
const groupAdmins = isGroupMsg ? await client.getGroupAdmins(groupId) : ''
const isGroupAdmins = isGroupMsg ? groupAdmins.includes(sender.id) : false
const isBotGroupAdmins = isGroupMsg ? groupAdmins.includes(botNumber + '@c.us') : false
const ownerNumber = ["628xxx@c.us","55xxxxx"] // replace with your whatsapp number
const ownerNumber = ["62895423457648@c.us","62895423457648"] // replace with your whatsapp number
const isOwner = ownerNumber.includes(sender.id)
const isBlocked = blockNumber.includes(sender.id)
const isNsfw = isGroupMsg ? nsfw_.includes(chat.id) : false
Expand Down