open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!

Home Page:https://docs.openwa.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not getting scanner/QR

AnjaliG-15 opened this issue · comments

Are you using the latest version of the library?

  • I have checked and am using the latest version of the library.

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Personal account (normal)

Mode

EASY API/CLI

Current Behavior

not getting scanner after executing the code with wa-automate npm package

Expected Behavior

should create the scanner/QR

Steps To Reproduce

just write the code and run node index.js

create() code OR full CLI command + CONFIG

const { create, Client } = require('@open-wa/wa-automate');

create({
  headless:'new'
}).then(client => start(client));

function start(client) {
  client.onMessage(async message => {
    if (message.body === 'Hi') {
      await client.sendText(message.from, 'Hello!');
    }
  });
}

DEBUG INFO

{
  "WA_VERSION": "2.3000.1012537916",
  "WA_AUTOMATE_VERSION": "4.68.0",
  "BROWSER_VERSION": "Chrome/112.0.5614.0",
  "START_TS": 1712236398422,
  "RAM_INFO": "Total: 16.40 GB | Free: 4.91 GB",
  "PPTR_VERSION": "19.11.1",
  "LATEST_VERSION": true,
  "CLI": false
}

Environment

- OS: Linux 6.5
- Node: 20.10.0
- npm: 10.2.3

Screenshots/Logs

const { create, Client } = require('@open-wa/wa-automate');

create({
headless:'new'
}).then(client => start(client));

function start(client) {
client.onMessage(async message => {
if (message.body === 'Hi') {
await client.sendText(message.from, 'Hello!');
}
});
}

Anything else?

No response

I have the same problem, it happened suddenly :/

is it any update ?

图像

Hi @Sordinni, Where was the latest news released? What should I do if I want to follow the latest news on this project? thank you

你好,去官方discord,在Readme Em qui, 4 de abr de 2024 22:31, 吴裕峰 @.> escreveu 中找到:
……
[图片:图像] < https://private-user-images.githubusercontent.com/69143644/319792211-f9717b16-7e0c-43ea-b6ed-9474bbf4c60a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..zbHOYGhNGb1rEmpBv 0sXd1bopYw6hrZpWMjqB4A3Jes > 嗨@Sordinni < https:// /github.com/Sordinni >,最新消息在哪里发布?如果我想关注这个项目的最新动态,我该怎么办?谢谢 - 直接回复此电子邮件,在 GitHub < #3184 (comment) > 上查看,或取消订阅 < https://github.com/notifications/unsubscribe-auth/AQPQYXHHNQMYHQAAEDWHCI3Y3X5H5AVCNFSM6AAAABFXITXNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZYGU4DKNB泰安 > .您收到此消息是因为您被提及。消息 ID:
@.>

@Sordinni openwa.dev/ this ?

@github-actions run

⚡ Release! ⚡
(async () => {
function exec(cmd) {
try {
	execSync(cmd, {stdio: 'inherit'})
}  catch (error) {
    console.log(`Status Code: ${error.status} with '${error.message}'`);
 }
}
//set the version type
process.env.VERS = "minor"

// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";

exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci $VERS`);

// types only package
exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN')
exec(`npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN && npm run types:publish `);
exec(`git commit -a -m 'updated types-only package'`);
exec(`git push --force`);

//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();

    await postComment(result);

//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
  })();

Changelog

🚀 Release 4.71.0 (2024-04-07)