-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
/
Copy path_autoReply.js
26 lines (25 loc) · 837 Bytes
/
_autoReply.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export async function all(m) {
// when someone sends a group link to the bot's dm
if (
(m.mtype === 'groupInviteMessage' ||
m.text.startsWith('https://chat') ||
m.text.startsWith('open this link')) &&
!m.isBaileys &&
!m.isGroup
) {
this.sendMessage(
m.chat,
{
text: `Hello @${m.sender.split('@')[0]}\nyou can rent the bot to join a group\n\n_For more info you can DM the owner_\n*Type* \`\`\`.owner\`\`\` *to contact the owner*`.trim(),
},
{ quoted: m }
)
/*this.sendButton(m.chat, `*Invite bot to a group*
Hallo @${m.sender.split('@')[0]}
you can rent the bot to join a group or contact owner
more info click on the button
`.trim(), igfg, null, [['Rent', '/buyprem']] , m, { mentions: [m.sender] })*/
m.react('💎')
}
return !0
}