Skip to content

Instantly share code, notes, and snippets.

@phaticusthiccy
Created February 9, 2021 00:37
Show Gist options
  • Save phaticusthiccy/064907966684c2bd2534e70f30b2c403 to your computer and use it in GitHub Desktop.
Save phaticusthiccy/064907966684c2bd2534e70f30b2c403 to your computer and use it in GitHub Desktop.
/* Codded by @phaticusthiccy
Telegram: t.me/phaticusthiccy
Instagram: www.instagram.com/kyrie.baran
*/
const Asena = require('../events');
const {MessageType} = require('@adiwajshing/baileys');
Asena.addCommand({on: 'text', fromMe: false, deleteCommand: false}, (async (message, match) => {
if ((!message.jid.includes('-')) || (message.jid.includes('-') &&
(( message.mention !== false && message.mention.length !== 0 ))) {
if (message.jid.includes('-') && (message.mention !== false && message.mention.length !== 0)) {
message.mention.map(async (jid) => {
if (message.client.user.jid.split('@')[0] === jid.split('@')[0]) {
await message.client.sendMessage(message.jid,'mk bi etiket atmayın yalnız kalmak istiyorum eğer işime gelirse bakarım gelmezse bakmam (spam yapma mk)', MessageType.text {quated: message.data});
}
})
} else if (message.jid.includes('-')) {
if (message.reply_message.jid.split('@')[0] === message.client.user.jid.split('@')[0]) {
await message.client.sendMessage(message.jid,'mk bi etiket atmayın yalnız kalmak istiyorum eğer işime gelirse bakarım gelmezse bakmam (spam yapma mk)', MessageType.text, {quoted: message.data});
}
} else {
await message.client.sendMessage(message.jid,'mk bi etiket atmayın yalnız kalmak istiyorum eğer işime gelirse bakarım gelmezse bakmam (spam yapma mk)', MessageType.text, {quoted: message.data});
}
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment