Skip to content

Instantly share code, notes, and snippets.

@souravkl11
Last active November 12, 2024 17:24
Show Gist options
  • Save souravkl11/4c5c4474abf19f4f8bba23f2c1a7fb18 to your computer and use it in GitHub Desktop.
Save souravkl11/4c5c4474abf19f4f8bba23f2c1a7fb18 to your computer and use it in GitHub Desktop.
Replies random audio when mentioned sudo numbers
/* Copyright strict under GNU GENERAL PUBLIC LICENSE
=> Split audios with , commas
=> Editing is not compulsory. If need to change audio, then edit
*/
const {SUDO} = require('../config');
var duration = 19998000
var audios = `https://i.imgur.com/5PoNdG5.mp4,https://i.imgur.com/Y8s8hTJ.mp4,https://i.imgur.com/80ZpjQV.mp4,https://i.imgur.com/VXOOJS5.mp4`;
const {getAudioBufferFromLink,skbuffer} = require('raganork-bot')
const {readFileSync} = require('fs')
const {Module} = require('../main');
// Module({pattern: 'mention ?(.*)', fromMe: true,dontAddCommandList: true}, (async (message, match) => {return;}));
Module({on: 'text' ,fromMe: false}, (async (message, match) => {
var jids = audios.split(',').filter(link => link.includes('mp4'));
try {var men = message.mention[0].split('@')[0]} catch {return;}
if (message.mention && message.mention[0] && SUDO.includes(men)) {
var waveform = Array.from({length: 15}, () => Math.floor(Math.random() * 100)); // use this for fancy: [0,99,0,99,0,99]
getAudioBufferFromLink(jids[Math.floor(Math.random()*jids.length)],async function(audio) {
if (audio) {
return message.client.sendMessage(message.jid, {audio,mimetype: 'audio/mp4',ptt: true,waveform }, { quoted: message.data })}
})}
}));
@akashbot1234
Copy link

Odikko

@zeus-ser7
Copy link

Parnj kodtha pore bro😮‍💨😹

@wanda-maximof-wa-bot
Copy link

wanda-maximof-wa-bot commented Aug 1, 2022 via email

@Redx-ser
Copy link

Redx-ser commented Aug 7, 2022

Myran

@Redx-ser
Copy link

Redx-ser commented Aug 7, 2022

Thayoli

@Redx-ser
Copy link

Redx-ser commented Aug 7, 2022

Ninte achan

@leocruzz
Copy link

Page link ille serch baril ullath ath thanne aan link

@vishnuprasadkl29
Copy link

Ninte achan

Ninakonnum vere pani ille

@Abusirbot
Copy link

Plugin link evideyaaa

Mandan aano...😂😂

😂Alla pinne

@souravkl11
Copy link
Author

@Cjoggy
Copy link

Cjoggy commented Jan 20, 2023

Bro mention sticker idavo

@ysstarkx
Copy link

Remove aaka na yagana

@ysstarkx
Copy link

How to delete a plugin plz reply 🙂

@ktz-master
Copy link

How to delete a plugin plz reply slightly_smiling_face

.remove //name

@nu338
Copy link

nu338 commented Mar 31, 2023

Plugin link evideyaaa

?

@nu338
Copy link

nu338 commented Mar 31, 2023

Hi

@Vfcfc
Copy link

Vfcfc commented May 25, 2023

Mollill

@Vfcfc
Copy link

Vfcfc commented May 25, 2023

How to delete a plugin plz reply slightly_smiling_face

Remove plugin name

@goated-Blaze
Copy link

how to set our own song plz tell anyone

@missnora07
Copy link

how to set our own song plz tell anyone

Audio url edukk then fork this plugin then edit (var audios='url, url, etc.. ')

@souravkl11
Copy link
Author

how to set our own song plz tell anyone

Audio url edukk then fork this plugin then edit (var audios='url, url, etc.. ')

Ok ser

@missnora07
Copy link

how to set our own song plz tell anyone

Audio url edukk then fork this plugin then edit (var audios='url, url, etc.. ')

Ok ser

Hmm🥸

@LBRIJUSER
Copy link

Engane mention set akne bro😐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment