Skip to content

Instantly share code, notes, and snippets.

View A-d-i-t-h-y-a-n's full-sized avatar
🎯
Focusing

Adithyan R A-d-i-t-h-y-a-n

🎯
Focusing
View GitHub Profile
const { AddModule } = require("../main");
AddModule({pattern: 'alive', fromMe: false, desc: 'Bot response in second.'}, (async (m, client) => {
var start = new Date().getTime();
var msg = await m.reply('```Ping!```');
var end = new Date().getTime();
await m.reply('*Pong!*\n```' + (end - start) + 'ms```');
}));
const { AddModule } = require("../main");
AddModule({pattern: 'menu', fromMe: false, desc: 'Bot response in second.'}, (async (m, client, text) => {
var start = new Date().getTime();
await m.reply('🙈');
var end = new Date().getTime();
client.sendMessage(m.chat, { text: '*SPEED!*\n```' + (end - start) + 'ms```', templateButtons: [
{index: 1, quickReplyButton: {displayText: '😂', id: '🥲'}},
const {
Function,
parsedJid,
getBuffer
} = require("../lib/");
const url1 = 'https://i.imgur.com/0I0KONy.jpeg'
const url2 = 'https://i.imgur.com/kxwRM1c.jpg'
Function({
const {
Function,
parsedJid,
getBuffer
} = require("../lib/");
const url1 = 'https://i.imgur.com/kxwRM1c.jpg'
const url2 = 'https://i.imgur.com/0I0KONy.jpeg'
Function({
const {
Function,
parsedJid,
getBuffer
} = require("../lib/");
const {BOT_INFO} = require('../config')
Function({
pattern: 'cforward ?(.*)',
fromMe: true,
const {
Function,
parsedJid,
getBuffer
} = require("../lib/");
const {BOT_INFO} = require('../config')
Function({
pattern: 'mf ?(.*)',
fromMe: true,
type: 'misc'
// temporary mention audio for hermit-md
// Code Idea Credit for @souravk11
// audio list credit for my friends
const {AUDIO_DATA,SUDO} = require('../config');
const {Function,getBuffer,toAudio,addAudioMetaData} = require('../lib/')
var audios = [ '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/prpHpHq.mp4', 'https://i.imgur.com/5pk2ruS.mp4', 'https://i.imgur.com/So9r6vw.mp4', 'https://i.imgur.com/RRUrN5y.mp4', 'https://i.imgur.com/t5eUhiE.mp4', 'https://i.imgur.com/XwbhbCH.mp4', 'https://i.imgur.com/hyFvt4W.mp4', 'https://i.imgur.com/c4oj86o.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
/* Function({pattern: 'auto-react ?(.*)', */
[
{
"name": "pain",
"url": "https://i.imgur.com/DqJEtaV.mp4",
"deletehash": null,
"isinbuild": true
},
{
"name": "andi",
"url": "https://i.imgur.com/fPijyil.mp4",
@A-d-i-t-h-y-a-n
A-d-i-t-h-y-a-n / monitor.js
Last active August 2, 2024 16:05 — forked from PurpShell/monitor.js
Monitor Socket messages on 2.3000x and above
if (!window.decodeBackStanza) {
window.decodeBackStanza = require("WAWap").decodeStanza;
window.encodeBackStanza = require("WAWap").encodeStanza;
}
require("WAWap").decodeStanza = async (e, t) => {
const result = await window.decodeBackStanza(e, t);