onUserLeave
This callback will listen to people who leave the group.
Command:
This command will run when someone leaves the group. The onUserLeave callback is also required if you enable userLeaveCommand.
bot.userLeaveCommand({
groupJid: 'group jid', // you can use the get variables here
code: `code`
})Code Breakdown:
{userJid}- The user JID.{groupJid}- The group JID.{user}- Mentions the user.{group}- Group name.And you can use other whatscode.js functions.
Example:
bot.userJoinCommand({
groupJid: '[email protected]',
code: `Goodbye {user} from {group}`
})Last updated
Was this helpful?