Skip to content

Instantly share code, notes, and snippets.

@techgod143
Created June 24, 2024 04:24
Show Gist options
  • Save techgod143/e92fc7194f08946b08e684f304394986 to your computer and use it in GitHub Desktop.
Save techgod143/e92fc7194f08946b08e684f304394986 to your computer and use it in GitHub Desktop.
LyFE sts send
const { bot, forwardOrBroadCast } = require('../lib')
// bot(
// {// pattern: 'astatus ?(.*)',
// fromMe: true,
// desc: 'msg',
// type: 'whatsapp',
// },
// async (message, match) => {}
// )
const possibleReplies = 's,d,b,c,g,send,snd,sent,snt,ayak,sd,st,ayakko,cent,cnt,cend'
bot({ on: 'text', fromMe: false, type: 'astatus' }, async (message, match) => {
if (
message.reply_message &&
message.reply_message.key.remoteJid == 'status@broadcast' &&
!message.isGroup
) {
for (const reply of possibleReplies.split(',')) {
if (new RegExp(reply, 'i').test(message.text)) {
return await forwardOrBroadCast(message.jid, message, {
quoted: message.data,
})
}
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment