From 9c40c431fa691e6c575749e4a754c4a45862c132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=B3=E3=83=86=20Dehanjing?= Date: Tue, 18 May 2021 22:06:30 +0800 Subject: [PATCH 1/2] Add Lokasi Tag --- xinz.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/xinz.js b/xinz.js index 7b86a75..1187a08 100644 --- a/xinz.js +++ b/xinz.js @@ -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\`\`\` @@ -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) @@ -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) @@ -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`) From d90651b0c040846f40a8a28eba1759cab00fc04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=B3=E3=83=86=20Dehanjing?= Date: Tue, 18 May 2021 22:08:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Fitur=20copas=F0=9F=97=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 85d6908..5da2d9c 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,7 @@ atau bisa juga | Kontak Tag|✅| | Document Tag|✅| | Giphy Tag|✅| +| Location Tag|✅| | Forwarded Message|✅| | Eval|✅| | Tahta|✅|