Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ atau bisa juga
| Kontak Tag|✅|
| Document Tag|✅|
| Giphy Tag|✅|
| Location Tag|✅|
| Forwarded Message|✅|
| Eval|✅|
| Tahta|✅|
Expand Down
14 changes: 12 additions & 2 deletions xinz.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ xinz.on('message-new', async(qul) => {
\`\`\`▢ ${prefix}kontaktag\`\`\`
\`\`\`▢ ${prefix}doctag\`\`\`
\`\`\`▢ ${prefix}giftag\`\`\`
\`\`\`▢ ${prefix}loctag\`\`\`
\`\`\`▢ ${prefix}tahta teks\`\`\`
\`\`\`▢ ${prefix}pubg teks1|teks2\`\`\`
\`\`\`▢ ${prefix}promote\`\`\`
Expand Down Expand Up @@ -508,7 +509,7 @@ xinz.on('message-new', async(qul) => {
aqul.hideTagKontak(from, argz[0], argz[1])
}
break
case 'doctag': case 'dokumentag': //by Dehanjing
case 'doctag': case 'dokumentag': //by Dehanjing v:
if (!isQuotedDocument) return aqul.reply(from, `Reply Document dengan caption *${prefix + command}*`, qul)
quoted = JSON.parse(JSON.stringify(qul).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo
download = await xinz.downloadMediaMessage(quoted)
Expand All @@ -522,7 +523,7 @@ xinz.on('message-new', async(qul) => {
xinz.sendMessage(from, fs.readFileSync(`doc.txt`), document, { contextInfo: {mentionedJid: mem }, quoted: qul, mimetype: 'text/plain' })
await fs.unlinkSync(`doc.txt`)
break
case 'giftag': case 'giphytag': //by Dehanjing
case 'giftag': case 'giphytag': //by Dehanjing v:
if (!isQuotedVideo) return reply(`Reply Gif nya dengan caption ${prefix + command}`)
quoted = JSON.parse(JSON.stringify(qul).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo
download = await xinz.downloadMediaMessage(quoted)
Expand All @@ -537,6 +538,15 @@ xinz.on('message-new', async(qul) => {
xinz.sendMessage(from, thumb, video, { contextInfo: {mentionedJid: mem }, quoted: qul, mimetype: 'video/gif', thumbnail: thumb })
await fs.unlinkSync(`giftag.gif`)
break
case 'loctag': case 'lokasitag': //by Dehanjing v:
var group = await xinz.groupMetadata(from)
var member = group['participants']
var mem = []
member.map(async adm => {
mem.push(adm.id.replace('c.us', 's.whatsapp.net'))
})
xinz.sendMessage(from, {degreesLatitude: 24.121231, degreesLongitude: 55.1121221}, MessageType.location, { contextInfo: {mentionedJid: mem } })
break
case 'tahta':
if (!arg) return aqul.reply(from, `Penggunaan ${prefix}tahta teks`, qul)
aqul.sendMediaURL(from, `https://api.zeks.xyz/api/hartatahta?text=${arg}&apikey=apivinz`)
Expand Down