Skip to content

Commit

Permalink
improve fakereply
Browse files Browse the repository at this point in the history
  • Loading branch information
Kry9toN committed Jan 28, 2021
1 parent 709230e commit c40bf07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/command/fakereply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ module.exports = {
name: 'fakereply',
aliases: ['fr', 'fake', 'fitnah'],
cooldown: 35,
description: 'Untuk memfitnah atau menjahili teman\nPenggunaan !fakereply _tag_',
description: 'Untuk memfitnah atau menjahili teman\nPenggunaan !fakereply _tag_|<text target>|<text di bot>',
execute (client: any, chat: any, pesan: any) {
if (!client.isGroup) return client.reply(pesan.error.group)
const arg = client.body.slice(9)
const targets = arg.split('|')[1]
const bot = arg.split('|')[2]
if (targets == 'undefined' || bot == 'undefined') return client.reply('Baca _!help fakereply_ biar paham')
const mentioned = chat.message.extendedTextMessage.contextInfo.mentionedJid
client.sendMessage(client.from, `${bot}`, MessageType.text, { quoted: { key: { fromMe: false, participant: `${mentioned}`, ...(client.from ? { remoteJid: client.from } : {}) }, message: { conversation: `${targets}` } } })
}
Expand Down

0 comments on commit c40bf07

Please sign in to comment.