Skip to content

Commit

Permalink
Update jadian.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ariffb committed Sep 7, 2021
1 parent 85bc38c commit 02c39b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/jadian.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
let handler = async (m, { conn, participants, command, usedPrefix, command }) => {
let handler = async (m, { conn, participants, command, usedPrefix }) => {
let member = participants.map(u => u.jid)
let orang
if (/ku/i.test(command)) orang = m.sender
else orang = member[Math.floor(Math.random() * member.length)]
let jodoh = member[Math.floor(Math.random() * member.length)]
let jawab = `@${orang.replace(/@.+/, '')} ❤️ @${jodoh.replace(/@.+/, '')}`.trim()
let mentionedJid = [orang, jodoh]
conn.reply(m.chat, jawab, m, { contextInfo: { mentionedJid } })
await conn.sendButton(m.chat, jawab, '© stikerin', `${command}`, usedPrefix + command, m, { contextInfo: { mentionedJid } })
}
handler.help = ['jodohin', 'jodohku']
Expand Down

0 comments on commit 02c39b2

Please sign in to comment.