Skip to content

MendingTuru/Session-MD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👋 Hello, I'm ᵈʳᴋᴏᴋᴏ ᴘᴀ፝֟፝֟ɴɢᴇʀᴀɴ

Banner

AMBIL INSTAN

  • Klik tombol replit di bawah ini untuk instan tanpa coding
    Run on Repl.it

MANUAL INSTALL

Cara ambil session nya,-

  • Tampilan session ada di file seperti di gambar ini
  • Hanya bisa run di replit tidak bisa di terminal lain
  • Salin session tepat di file auth_info_multi.json / jika mau file langsung ke session.data.json ganti terlebih dahulu file index
  • file index mentahan [KLIK MENTAHAN INDEX INI] salin dan ganti file index asli.
const makeWASocket = require("@adiwajshing/baileys").default
const qrcode = require("qrcode-terminal")
const { delay, useSingleFileAuthState } = require("@adiwajshing/baileys")
const { state, saveState } = useSingleFileAuthState('./session.data.json')

function qr() {
  let session = makeWASocket({
    auth: state,
    printQRInTerminal: true,
  })
  session.ev.on("connection.update", async (s) => {
    const { connection, lastDisconnect } = s
    if (connection == "open") {
      await delay(1000 * 10)
      process.exit(0)
    }
    if (
      connection === "close" &&
      lastDisconnect &&
      lastDisconnect.error &&
      lastDisconnect.error.output.statusCode != 401
    ) {
      qr()
    }
  })
  session.ev.on('creds.update', saveState)
  session.ev.on("messages.upsert", () => { })
}
qr()

Session-Md

Session untuk bot Md Simple Run repl Run on Repl.it

INSTALL ON Replit

[ INSTALLING ]

git clone https://github.com/MendingTuru/Session-MD.git
cd Session-MD
npm i
node index

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages