Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save itzmesuhail143/88f3c31ad70e9103ce6d809ba17e09ce to your computer and use it in GitHub Desktop.
Save itzmesuhail143/88f3c31ad70e9103ce6d809ba17e09ce to your computer and use it in GitHub Desktop.
MADE WITH LOVE πŸ”–
const { System } = require('../lib/');
System({
pattern: "auto_status_sender",
on: 'text',
allowBot: true,
fromMe: 'public',
desc: "automatic status sender",
dontAddCommandList: true,
},
async (message, match) => {
var sends = ["Sent","Send","giv","Giv","anuppu","ayk","send","sent","znt","Znt","snt","Snd","Snt","ayak"];
if (message.fromMe || (!message.reply_message == 'status@broadcast')) return;
if (!message.jid == ('status@broadcast')) return;
if (message.isGroup) return;
if (sends.some(keyword => message.body.includes(keyword))) {
await message.forward(message.from, message.reply_message, { quoted: message.data });
} else {
return;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment