Skip to content

Instantly share code, notes, and snippets.

@12Burhancv
Last active September 5, 2023 04:52
Show Gist options
  • Save 12Burhancv/e773203898dc7bd2ad7ba7ac9ff6b7a6 to your computer and use it in GitHub Desktop.
Save 12Burhancv/e773203898dc7bd2ad7ba7ac9ff6b7a6 to your computer and use it in GitHub Desktop.
const { inrl,getVar,getBuffer} = require('../lib');
inrl({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", "917012984396p"],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"//if you need to add moreaudio methord = mP3 == "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"
let jPg = "https://i.ibb.co/b5YTMm6/4cb785b20fe2.jpeg"
// options fro frd
let options = {
fileLength:999999999,
ptt:false,
mimetype:"audio/mpeg",
forwardType : "audio",
seconds :999999999999999,
waveform: [0,50,100,50,0,50,100,50,0,50,100,50,0]
}
options.linkPreview = {
showAdAttribution : true,
body:"inrl",
title:"emdi",
renderLargerThumbnail:true,
thumbnail:await getBuffer(jPg),
mediaType:2,
mediaUrl: "https://www.instagram.com/reel/CrGjydtpLyz/?igshid=ODM2MWFjZDg=",
sourceUrl:"https://www.instagram.com/reel/CrGjydtpLyz/?igshid=ODM2MWFjZDg="
}
options.contextInfo = {
isForwarded:false,
forwardingScore:329
}
let matchs = m.client.displayText?.replaceAll(' ','') ||'inrl', 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.forwardMessage(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