wolfyflutter

blazingly fast swgc baileys github

Feb 16th, 2026 (edited)
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. import { getContentType } from 'baileys'
  3.  
  4. async function plugin({ sock, jid, text, m, q, prefix, command, other }) {
  5.  
  6.     // [!] WAJIB PAKAI BAILEYS WHISKEYSOCKET DI GITHIB YA! JANGAN YANG NPM KARENA BELUM UPDATE NORMALIZE MESSAGE FUNCTION,
  7.  
  8.  
  9.     // kalian eksperimen ya, sengaja aku gak buatin filter quoted nya, kalian bikin sendiri sesuai selera
  10.     // cara ini cuma work untuk quoted message
  11.     // by wolep, soalnya ini jg bisa swgc extended text message yang isi thumbnail kaya ig, yt, dll...
  12.    
  13.     const ct = getContentType(m.message)
  14.     const WAMC = {
  15.         groupStatusMessageV2: {
  16.             message: m.message[ct].contextInfo.quotedMessage
  17.         }
  18.     }
  19.     let temp = WAMC
  20.  
  21.  
  22.     // kalian pasti bingung kenapa musti nested objek pakai looping.
  23.     // percayalah cara ini buat counter fungsi yang di update terbaru
  24.     // jaga" swgc terbaru kalau swgc kalian suatu saat gak worek saat update baileys dirilis ke npm
  25.  
  26.     for (let i = 0; i < 5; i++) {
  27.         const n = {
  28.             groupStatusMessageV2 : {
  29.                 message: temp
  30.             }
  31.         }
  32.         temp = n
  33.     }
  34.  
  35.    
  36.     return await sock.relayMessage(jid, temp, {})
  37. }
  38.  
  39. plugin.title = 'upload gc story'
  40. plugin.command = ['swgc']
  41. plugin.category = ['wacap']
  42. plugin.description = 'upload story'
  43.  
  44. export default plugin
Add Comment
Please, Sign In to add comment