-
-
Save itzmesuhail143/cdaafbd76897c0752f5d9c924ced621a to your computer and use it in GitHub Desktop.
Automatically sends status if anyone asks our status. Like 'send', 'snt' etc...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//pattern: 'status_sender', | |
// Matching keywords | |
const snds = "send,snd,snt,sent,ayak,ayk,gevSent,Send,giv,Giv,anuppu,ayk,send,sent,znt,Znt,snt,Snd,Snt,ayak" | |
// Custom message to be sent along with status | |
const MSG = ""; | |
const {Module} = require('../main'); | |
const sends = snds.split(","); | |
Module({on: 'text', fromMe: false}, async (message) => { | |
if (!message.reply_message || message.quoted.key.remoteJid !== 'status@broadcast') return; | |
if (sends.some(keyword => message.message.toLowerCase().includes(keyword))) { | |
return await message.forwardMessage(message.jid, message.quoted, {contextInfo: {isForwarded: false}}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment