open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.05k stars 589 forks source link

CLI: cloud storage preprocessors #1935

Closed smashah closed 2 years ago

smashah commented 2 years ago

At the moment, we have preprocessors that decrypt and dump files to the local file system or just decrypt the whole file and dump the base64 in the message object itself

The issues with these approaches is that it will either inflate the local file storage or it will crash a message object handler down the line due to massive json payloads.

There needs to be another processor that takes the file, uploads it to GCP/AWS, etc.

smashah commented 2 years ago

https://www.npmjs.com/package/aws-s3

smashah commented 2 years ago

@github-actions run

⚡ Release! ⚡ ```js (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 -D`); exec(`npm run release-ci minor`); //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`); })(); ```
smashah commented 2 years ago

Changelog

🚀 Release 4.13.0 (2021-08-03)