Hi, I want to have my nodejs app be able to read the version of the package of the @open-wa/wa-automate the client is using. I noticed that this is read within the client but not exposed through the library. I know there's ways to read this from the file system, but since this is already being read into the client, can this be exposed for use by my nodejs app?
My use case, i want to track both the whatsapp version and wa-automate versions being used
Yeh I was planning on doing that tonight anyways :D
@github-actions run
âš¡ Release! âš¡
(async () => {
function exec(cmd) {
console.log(execSync(cmd).toString());
}
// 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`);
exec(`npm run release-ci`);
//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`);
})();
#572#573#5776bfb953getAllChatsWithMessages #576 f454cd955232ee14b49cciAmAdmin #584 fb1354egetSessionInfo #586 fef6b9503dcde73d7790683bfbf7e3cefef7622cceImplemented in 1.9.85
const sessionInfo = client.getSessionInfo();
// returns the debug info from initilization
const config = client.getConfig(); //available after 1.9.86
// returns the config used to create the session without any sensitive data
https://open-wa.github.io/wa-automate-nodejs/classes/client.html#getsessioninfo
https://open-wa.github.io/wa-automate-nodejs/classes/client.html#getconfig
Most helpful comment
@github-actions run
âš¡ Release! âš¡