mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
lint: examples
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import P from "pino"
|
||||
import { Boom } from "@hapi/boom"
|
||||
import { makeWALegacySocket, DisconnectReason, AnyMessageContent, delay, useSingleFileLegacyAuthState, makeInMemoryStore } from '../src'
|
||||
import { Boom } from '@hapi/boom'
|
||||
import P from 'pino'
|
||||
import { AnyMessageContent, delay, DisconnectReason, makeInMemoryStore, makeWALegacySocket, useSingleFileLegacyAuthState } from '../src'
|
||||
|
||||
// the store maintains the data of the WA connection in memory
|
||||
// can be written out to a file & read from it
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import P from "pino"
|
||||
import { Boom } from "@hapi/boom"
|
||||
import makeWASocket, { DisconnectReason, AnyMessageContent, delay, useSingleFileAuthState, makeInMemoryStore } from '../src'
|
||||
import { Boom } from '@hapi/boom'
|
||||
import P from 'pino'
|
||||
import makeWASocket, { AnyMessageContent, delay, DisconnectReason, makeInMemoryStore, useSingleFileAuthState } from '../src'
|
||||
|
||||
// the store maintains the data of the WA connection in memory
|
||||
// can be written out to a file & read from it
|
||||
@@ -59,6 +59,7 @@ const startSock = () => {
|
||||
})
|
||||
|
||||
sock.ev.on('messages.update', m => console.log(m))
|
||||
sock.ev.on('message-receipt.update', m => console.log(m))
|
||||
sock.ev.on('presence.update', m => console.log(m))
|
||||
sock.ev.on('chats.update', m => console.log(m))
|
||||
sock.ev.on('contacts.upsert', m => console.log(m))
|
||||
|
||||
Reference in New Issue
Block a user