let's make the example working (#2017)

This commit is contained in:
George Hazan
2025-11-06 00:28:03 +03:00
committed by GitHub
parent 4599ff84bb
commit ba32ef9110
-3
View File
@@ -6,7 +6,6 @@ import makeWASocket, { AnyMessageContent, BinaryInfo, CacheStore, delay, Disconn
import open from 'open'
import fs from 'fs'
import P from 'pino'
import { WAMHandler } from './wam'
const logger = P({
level: "trace",
@@ -65,8 +64,6 @@ const startSock = async() => {
})
const wam = new WAMHandler(sock, state)
// Pairing code for Web clients
if (usePairingCode && !sock.authState.creds.registered) {
// todo move to QR event