Wa-automate-nodejs: Feature: Create open-wa binary for zero-install api

Created on 1 Jul 2020  Â·  5Comments  Â·  Source: open-wa/wa-automate-nodejs

example:

> npx @open-wa/wa-automate --api --use-chrome --port 8002
PRIORITY enhancement

All 5 comments

@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`);
  })();

Changelog

🚀 Release 1.9.99 (2020-07-16)

  • build(deps-dev): bump marked from 1.1.0 to 1.1.1 #649
  • build(deps-dev): bump @types/node from 14.0.22 to 14.0.23 #650
  • build(deps): bump puppeteer from 5.0.0 to 5.1.0 #643
  • build(deps-dev): bump @types/node from 14.0.20 to 14.0.22 #644
  • Completed common type alias migration #583 9b7673b
  • Feature: inDocker will try to find most configs from process.env #603 fadf126
  • Release 1.9.99 2e8b768
  • Feature: Implemented simple server binary npx open-wa -p 8080 #604 6f4f3f1
  • implemented docwatch and new docs theme 3e4b3f2
  • Added better error handling on sendText #645 53660d5
  • BREAKING CHANGE: client.page is now deprecated and private. access via client.getPage() 2acfd6b
  • chore: update supported version in readme ccbf1d2
  • fix demos a5da92c
  • Feature: sessionDataPath now can point to specific session.data.json file instead of just directory 1d8d31e
  • killProcessOnBrowserClose default to false #647 96b7d4e
  • chore: Update default UA 2bab677

@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`);
  })();

Changelog

🚀 Release 1.9.100 (2020-07-17)

  • Release 1.9.100 b4f8175
  • feature: npx integration fixes (#658) #604 47596f9
  • update wapi.js getAllMessagesInChat 6515bbb
  • serialize message output on clean: false in getAllMessagesInChat 4f917a0

You can now create an API of your WhatsApp number simply via the terminal:

> npx @open-wa/wa-automate 
Was this page helpful?
0 / 5 - 0 ratings

Related issues

renato-macedo picture renato-macedo  Â·  6Comments

blackchineykh picture blackchineykh  Â·  4Comments

alishahlakhani picture alishahlakhani  Â·  7Comments

sandro-salles picture sandro-salles  Â·  4Comments

jazZcarabazZ picture jazZcarabazZ  Â·  5Comments