Comentário de alguns consoles
parent
6c9ca4f10e
commit
f0e5167edd
|
@ -115,6 +115,8 @@ export const initWbot = async (whatsapp: Whatsapp): Promise<Session> => {
|
||||||
wbot.on("ready", async () => {
|
wbot.on("ready", async () => {
|
||||||
logger.info(`Session: ${sessionName} READY`);
|
logger.info(`Session: ${sessionName} READY`);
|
||||||
|
|
||||||
|
// console.log('>>>>>>>>>>>>>> ready wbot.ts MOBILE NUMBER: ', wbot.info["wid"]["user"])
|
||||||
|
|
||||||
await whatsapp.update({
|
await whatsapp.update({
|
||||||
status: "CONNECTED",
|
status: "CONNECTED",
|
||||||
qrcode: "",
|
qrcode: "",
|
||||||
|
|
|
@ -20,6 +20,9 @@ const wbotMonitor = async (
|
||||||
try {
|
try {
|
||||||
wbot.on("change_state", async newState => {
|
wbot.on("change_state", async newState => {
|
||||||
logger.info(`Monitor session: ${sessionName}, ${newState}`);
|
logger.info(`Monitor session: ${sessionName}, ${newState}`);
|
||||||
|
|
||||||
|
// console.log('>>>>>>>>>>>>>> change_state wbotMonitor.ts MOBILE NUMBER: ', wbot.info["wid"]["user"])
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await whatsapp.update({ status: newState });
|
await whatsapp.update({ status: newState });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in New Issue