Skip to content

Instantly share code, notes, and snippets.

View PurpShell's full-sized avatar
🎯
Focusing

Rajeh Taher PurpShell

🎯
Focusing
View GitHub Profile
@PurpShell
PurpShell / MessageCollectior.js
Last active August 9, 2023 23:08 — forked from Iucasmaia/maia.js
Message Collector for Baileys v4 and above
const { WAProto } = require('@whiskeysockets/baileys');
// Message Collectors / Wait for Message
class MessageCollection {
// Internal object to temporarily store msgs
#msgs = {};
// Is the socket event handler binded?
isBinded = false;
socket = null;