-
-
Save 12Burhancv/507f8470658577d920c413314291d03f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { command,getVar,getBuffer} = require('../lib'); | |
command({on:"all",pattern: 'automention',sucReact: "π", category: ["external"], type : "opt"}, async (m, client, match) => { | |
try { | |
let {BOT_INFO, SUDO} = await getVar(); | |
let IsOwner, IsSudo, Owner, Sudo | |
let NewMension = ["919995790973", "919995790973"],MENSION_DATA; | |
let IsBot = client.user.jid.split('@')[0]; | |
NewMension.push(IsBot); | |
if(BOT_INFO.split(';')[0]){ | |
Owner = BOT_INFO.split(';')[0] | |
NewMension.push(Owner); | |
}; | |
if(!SUDO.includes(',')){ | |
NewMension.push(SUDO.trim()); | |
} else if(SUDO.includes(',')){ | |
Sudo = SUDO.split(','); | |
NewMension = Sudo.concat(NewMension) | |
}; | |
// added sudo and owner in single array// | |
let mP3 = "https://i.imgur.com/FP0Lavx.mp4,https://i.imgur.com/HAAO46T.mp4,https://i.imgur.com/9v8QcVR.mp4,https://i.imgur.com/71dHaki.mp4,https://i.imgur.com/FSwSWX9.mp4,https://i.imgur.com/yDZHYMo.mp4,https://i.imgur.com/heoLccd.mp4,https://i.imgur.com/RKc55ay.mp4,https://i.imgur.com/0ZfAi73.mp4,https://i.imgur.com/pAYv5EK.mp4,https://i.imgur.com/WqeJ5xq.mp4,https://i.imgur.com/SaRePxa.mp4,https://i.imgur.com/EzlZYp8.mp4,https://i.imgur.com/yBaGZm8.mp4,https://i.imgur.com/RJWnhXg.mp4,https://i.imgur.com/m2ocYps.mp4,https://i.imgur.com/5PoNdG5.mp4,https://i.imgur.com/Y8s8hTJ.mp4,https://i.imgur.com/80ZpjQV.mp4,https://i.imgur.com/VXOOJS5.mp4https://i.imgur.com/ax6EwOi.mp4,https://i.imgur.com/lAbt9ew.mp4,https://i.imgur.com/AcHHpqh.mp4,https://i.imgur.com/t7HKmDj.mp4,https://i.imgur.com/oJG0p1R.mp4,https://i.imgur.com/hCnMXIt.mp4,https://i.imgur.com/15OWdxQ.mp4,https://i.imgur.com/wduQUZ6.mp4,https://i.imgur.com/Ec1fHg6.mp4,https://i.imgur.com/ul9x6Fl.mp4,https://i.imgur.com/B6DuFxf.mp4,https://i.imgur.com/rTfVyTL.mp4,https://i.imgur.com/pWF1Wyf.mp4,https://i.imgur.com/f06QQMw.mp4,https://i.imgur.com/hrOA7SZ.mp4,https://i.imgur.com/iXCTeqC.mp4,https://i.imgur.com/prb6egI.mp4,https://i.imgur.com/j8vAgTm.mp4,https://i.imgur.com/u1VIily.mp4,https://i.imgur.com/O36QHKi.mp4,https://i.imgur.com/tZC4JKd.mp4,https://i.imgur.com/KganHHA.mp4,https://i.imgur.com/DVTRwBc.mp4,https://i.imgur.com/LqkVfhp.mp4,https://i.imgur.com/SJiFZUE.mp4,https://i.imgur.com/X8iuOkP.mp4,https://i.imgur.com/tnI2SR8.mp4,https://i.imgur.com/3xMn61m.mp4,https://i.imgur.com/J4o7x4v.mp4,https://i.imgur.com/iP2m08x.mp4,https://i.imgur.com/TxEuIoT.mp4,https://i.imgur.com/i48PXIO.mp4,https://i.imgur.com/aFiSnXr.mp4,https://i.imgur.com/ejCIYrh.mp4,https://i.imgur.com/ECRFsIB.mp4,https://i.imgu8H0bKYE.mp4,https://i.imgur.com/cFAfXs1.mp4,https://i.imgur.com/zVO1EYx.mp4,https://i.imgur.com/zVO1EYx.mp4,https://i.imgur.com/pNH9yPO.mp4,https://i.imgur.com/cIZj01w.mp4,https://i.imgur.com/NDZNsDx.mp4,https://i.imgur.com/2FvTLwu.mp4,https://i.imgur.com/2FvTLwu.mp4,https://i.imgur.com/X0PUhn7.mp4,https://i.imgur.com/ssNhocz.mp4,https://i.imgur.com/uwp8MHS.mp4,https://i.imgur.com/dvjEalU.mp4,https://i.imgur.com/Q1yyTia.mp4,https://i.imgur.com/6rEv17r.mp4,https://i.imgur.com/BLC3MkJ.mp4,https://i.imgur.com/hC3TEwe.mp4,https://i.imgur.com/8H0bKYE.mp4,https://i.imgur.com/8H0bKYE.mp4,https://i.imgur.com/cFAfXs1.mp4,https://i.imgur.com/zVO1EYx.mp4,https://i.imgur.com/zVO1EYx.mp4,https://i.imgur.com/pNH9yPO.mp4,https://i.imgur.com/cIZj01w.mp4,https://i.imgur.com/NDZNsDx.mp4,https://i.imgur.com/2FvTLwu.mp4,https://i.imgur.com/2FvTLwu.mp4,https://i.imgur.com/X0PUhn7.mp4,https://i.imgur.com/ssNhocz.mp4,https://i.imgur.com/uwp8MHS.mp4,https://i.imgur.com/dvjEalU.mp4,https://i.imgur.com/Q1yyTia.mp4,https://i.imgur.com/6rEv17r.mp4,https://i.imgur.com/pSoajhf.mp4https://i.imgur.com/ymLXSV2.mp4,https://i.imgur.com/sdrE4i7.mp4,https://i.imgur.com/lB6VpeC.mp4,https://i.imgur.com/Yo3pimH.mp4,https://i.imgur.com/lwaQ,https://i.imgur.com/g7xGE5K.mp4,https://i.imgur.com/EASOkOE.mp4,https://i.imgur.com/KQ09Vlt.mp4,https://i.imgur.com/KQ09Vlt.mp4,https://i.imgur.com/f06QQMw.mp4,https://i.imgur.com/hrOA7SZ.mp4,https://i.imgur.com/iXCTeqC.mp4,https://i.imgur.com/prb6egI.mp4,https://i.imgur.com/j8vAgTm.mp4,https://i.imgur.com/u1VIily.mp4,https://i.imgur.com/O36QHKi.mp4,https://i.imgur.com/tZC4JKd.mp4,https://i.imgur.com/KganHHA.mp4,https://i.imgur.com/DVTRwBc.mp4,https://i.imgur.com/LqkVfhp.mp4,https://i.imgur.com/SJiFZUE.mp4,https://i.imgur.com/SBWolI2.mp4,https://i.imgur.com/lXE9t3L.mp4,https://i.imgur.com/ZyPPNWj.mp4,https://i.imgur.com/CHiH1Ok.mp4,https://i.imgur.com/vVUN1xe.mp4,https://i.imgur.com/QMUvh09.mp4,https://i.imgur.com/Nx8dBjn.mp4,https://i.imgur.com/9QNKWMn.mp4,https://i.imgur.com/Rlv7O5h.mp4,https://i.imgur.com/Bni0cdc.mp4,https://i.imgur.com/2zNy69a.mp4,https://i.imgur.com/HHWRLEa.mp4,https://i.imgur.com/fK0DOJ9.mp4,https://i.imgur.com/zMkGLbZ.mp4,https://i.imgur.com/NeXRU7X.mp4,https://i.imgur.com/k5qtbzS.mp4,https://i.imgur.com/Akrcr9E.mp4,https://i.imgur.com/6ZfpymF.mp4,https://i.imgur.com/9BUXHmG.mp4,https://i.imgur.com/Xuf9UGx.mp4,https://i.imgur.com/mn87C4j.mp4,https://i.imgur.com/SqvKkfN.mp4,https://i.imgur.com/QlGimEG.mp4,https://i.imgur.com/QlGimEG.mp4,https://i.imgur.com/IPYQrD6.mp4,https://i.imgur.com/901twqT.mp4,https://i.imgur.com/d81mV8w.mp4,https://i.imgur.com/e4VHiYA.mp4,https://i.imgur.com/7spG05d.mp4,https://i.imgur.com/HmmDtii.mp4,https://i.imgur.com/PimvgR0.mp4,https://i.imgur.com/vypRYOT.mp4,https://i.imgur.com/0CnmJ5j.mp4,https://i.imgur.com/hVOMauX.mp4,https://i.imgur.com/q4XpvfS.mp4,https://i.imgur.com/VIgl1PH.mp4,https://i.imgur.com/s6DBUmb.mp4,https://i.imgur.com/jnu5ePG.mp4,https://i.imgur.com/A7pE40z.mp4,https://i.imgur.com/ZCUJYpj.mp4,https://i.imgur.com/pIojlNH.mp4,https://i.imgur.com/m4uSg0C.mp4,https://i.imgur.com/Y6O8bY0.mp4,https://i.imgur.com/j46pnex.mp4,https://i.imgur.com/lfjvAKn.mp4,https://i.imgur.com/p2Rzjnt.mp4,https://i.imgur.com/CHQqsuo.mp4,https://i.imgur.com/3EKNJK7.mp4,https://i.imgur.com/VeCyS1b.mp4,https://i.imgur.com/Z2WWoiq.mp4,https://i.imgur.com/ElpaPmr.mp4,https://i.imgur.com/4p21jVL.mp4,https://i.imgur.com/Z25JW0g.mp4,https://i.imgur.com/gkb9ooR.mp4,https://i.imgur.com/bzLrzrO.mp4,https://i.imgur.com/cOgGcak.mp4,https://i.imgur.com/PRJ3mSm.mp4,https://i.imgur.com/V6dnSAe.mp4,https://i.imgur.com/ILxdUaC.mp4,https://i.imgur.com/Lsz1Du7.mp4,https://i.imgur.com/RyvseEa.mp4,https://i.imgur.com/P3WY8nw.mp4,https://i.imgur.com/lr7b03h.mp4,https://i.imgur.com/ax6EwOi.mp4,https://i.imgur.com/X8iuOkP.mp4,https://i.imgur.com/tnI2SR8.mp4,https://i.imgur.com/3xMn61m.mp4,https://i.imgur.com/J4o7x4v.mp4,https://i.imgur.com/iP2m08x.mp4,https://i.imgur.com/TxEuIoT.mp4,https://i.imgur.com/i48PXIO.mp4,https://i.imgur.com/aFiSnXr.mp4,https://i.imgur.com/ejCIYrh.mp4,https://i.imgur.com/ECRFsIB.mp4,https://i.imgur.com/Ip6DS4W.mp4,https://i.imgur.com/OUI5xGN.mp4,https://i.imgur.com/oPqarKo.mp4,https://i.imgur.com/SIMkxaM.mp4,https://i.imgur.com/ylmq8rb.mp4,https://i.imgur.com/u8fiCXb.mp4,https://i.imgur.com/HncFK5F.mp4,https://i.imgur.com/FrLp9AK.mp4,https://i.imgur.com/VOmOawi.mp4,https://i.imgur.com/6Xj5UXN.mp4,https://i.imgur.com/sniwK4D.mp4,https://i.imgur.com/Vy3YAXI.mp4,https://i.imgur.com/eYxrNUf.mp4,https://i.imgur.com/6QFiAoM.mp4,https://i.imgur.com/lAbt9ew.mp4,https://i.imgur.com/AcHHpqh.mp4,https://i.imgur.com/t7HKmDj.mp4,https://i.imgur.com/oJG0p1R.mp4,https://i.imgur.com/hCnMXIt.mp4,https://i.imgur.com/wduQUZ6.mp4,https://i.imgur.com/Ec1fHg6.mp4,https://i.imgur.com/ul9x6Fl.mp4,https://i.imgur.com/B6DuFxf.mp4,https://i.imgur.com/rTfVyTL.mp4,https://i.imgur.com/f06QQMw.mp4,https://i.imgur.com/hrOA7SZ.mp4,https://i.imgur.com/iXCTeqC.mp4,https://i.imgur.com/prb6egI.mp4,https://i.imgur.com/j8vAgTm.mp4,https://i.imgur.com/u1VIily.mp4,https://i.imgur.com/O36QHKi.mp4,https://i.imgur.com/tZC4JKd.mp4,https://i.imgur.com/KganHHA.mp4,https://i.imgur.com/DVTRwBc.mp4,https://i.imgur.com/LqkVfhp.mp4,https://i.imgur.com/SJiFZUE.mp4,https://i.imgur.com/WARShRy.mp4,https://i.imgur.com/hyQj2lx.mp4,https://i.imgur.com/txkM9qW.mp4,https://i.imgur.com/EprdRNJ.mp4,https://i.imgur.com/pP6NHPf.mp4,https://i.imgur.com/wODIlC7.mp4,https://i.imgur.com/rRPnnCq.mp4,https://i.imgur.com/xnfG7tg.mp4,https://i.imgur.com/k1lq9vs.mp4,https://i.imgur.com/qPkviUd.mp4,https://i.imgur.com/gv29aga.mp4,https://i.imgur.com/8HvdglZ.mp4,https://i.imgur.com/EfYQnb9.mp4,https://i.imgur.com/tIehcgC.mp4,https://i.imgur.com/VwzM3wV.mp4,https://i.imgur.com/WKpl7eS.mp4,https://i.imgur.com/5Wnd52w.mp4,https://i.imgur.com/eM3RypD.mp4,https://i.imgur.com/b5kXK5V.mp4,https://i.imgur.com/uLG516B.mp4,https://i.imgur.com/hP2TXKm.mp4,https://i.imgur.com/cZggJkF.mp4,https://i.imgur.com/RV8CnnC.mp4,https://i.imgur.com/5N26kvL.mp4,https://i.imgur.com/RlOinJI.mp4,https://i.imgur.com/58OLkaJ.mp4,https://i.imgur.com/EiHuGSL.mp4,https://i.imgur.com/tG96OYD.mp4,https://i.imgur.com/qOVkgkM.mp4,https://i.imgur.com/tkEmtyt.mp4,https://i.imgur.com/PgM9o1N.mp4,https://i.imgur.com/WoIAAyb.mp4,https://i.imgur.com/w8ilFA2.mp4,https://i.imgur.com/2AioS69.mp4,https://i.imgur.com/5NuWuit.mp4,https://i.imgur.com/rJl3Fmc.mp4,https://i.imgur.com/MyGVzKY.mp4,https://i.imgur.com/58sgxxs.mp4,https://i.imgur.com/GT48zNT.mp4,https://i.imgur.com/M5qqOOR.mp4,https://i.imgur.com/C6XmNBQ.mp4,https://i.imgur.com/qybdlnH.mp4,https://i.imgur.com/6Mo0t4S.mp4,https://i.imgur.com/7KutCqN.mp4,https://i.imgur.com/vY8CfI7.mp4,https://i.imgur.com/TRks3HW.mp4,https://i.imgur.com/1WqGZsK.mp4,https://i.imgur.com/IVRJ4Kl.mp4,https://i.imgur.com/8VPw0Oa.mp4,https://i.imgur.com/NaIdISt.mp4,https://i.imgur.com/eIgs4VE.mp4,https://i.imgur.com/dmBYDhI.mp4,https://i.imgur.com/hOx0l2k.mp4,https://i.imgur.com/6s93qmw.mp4,https://i.imgur.com/XHjuvMu.mp4,https://i.imgur.com/kt3ha7x.mp4,https://i.imgur.com/IPLotjJ.mp4,https://i.imgur.com/HsiZX4g.mp4,https://i.imgur.com/ZDWEZvP.mp4,https://i.imgur.com/n5kDqv5.mp4,https://i.imgur.com/s3wesOt.mp4,https://i.imgur.com/RztwAnM.mp4"//if you need to add moreaudio methord = mP3 == "url1,url2,url3,etc.." | |
let jPg = "https://i.imgur.com/jbDceAm.jpg" | |
// options fro frd | |
let options = { | |
fileLength:999999999, | |
ptt:true, | |
mimetype:"audio/mpeg", | |
forwardType : "audio", | |
seconds :false, | |
waveform: Array.from({length: 30}, () => Math.floor(Math.random() * 100)) | |
} | |
options.linkPreview = { | |
showAdAttribution : false, | |
body:"π±πππ·π°π½", | |
title:"βͺβ€ΝΝβ βκͺΆ πΊπΈπ»π»π΄ππ₯βͺΝΝ‘βΊ", | |
renderLargerThumbnail:true, | |
thumbnail:await getBuffer(jPg), | |
mediaType:2, | |
mediaUrl: "https://www.instagram.com/reel/CrA-ZlVsRgy/?igshid=MmJiY2I4NDBkZg==", | |
sourceUrl:"https://www.instagram.com/reel/CrA-ZlVsRgy/?igshid=MmJiY2I4NDBkZg==" | |
} | |
options.contextInfo = { | |
isForwarded:false, | |
forwardingScore:329 | |
} | |
let matchs = m.client.displayText?.replaceAll(' ','') ||'command', isTrue = false; | |
NewMension.map(async(cc)=>{ | |
if(!matchs.match(cc)) return; | |
isTrue = true | |
}); | |
if(isTrue===true){ | |
isTrue = false; | |
mP3 = mP3.replaceAll(' ',''); | |
// give random and single aufion by below Function// | |
let content,StoreMp3; | |
if(!mP3.includes(',')){ | |
content = mP3; | |
} else { | |
StoreMp3 = mP3.split(','); | |
content = StoreMp3[Math.floor(Math.random() * StoreMp3.length)] | |
} | |
//end | |
return await m.sendMessage(m.from,content,options) | |
} | |
} catch(e){ | |
return await m.reply(e); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment