let's make the example working (#2017)
This commit is contained in:
@@ -6,7 +6,6 @@ import makeWASocket, { AnyMessageContent, BinaryInfo, CacheStore, delay, Disconn
|
|||||||
import open from 'open'
|
import open from 'open'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import P from 'pino'
|
import P from 'pino'
|
||||||
import { WAMHandler } from './wam'
|
|
||||||
|
|
||||||
const logger = P({
|
const logger = P({
|
||||||
level: "trace",
|
level: "trace",
|
||||||
@@ -65,8 +64,6 @@ const startSock = async() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
const wam = new WAMHandler(sock, state)
|
|
||||||
|
|
||||||
// Pairing code for Web clients
|
// Pairing code for Web clients
|
||||||
if (usePairingCode && !sock.authState.creds.registered) {
|
if (usePairingCode && !sock.authState.creds.registered) {
|
||||||
// todo move to QR event
|
// todo move to QR event
|
||||||
|
|||||||
Reference in New Issue
Block a user