amiruldev20 / mywajs Goto Github PK
View Code? Open in Web Editor NEWwwebjs remake with playwright
Home Page: https://amiruldev20.github.io/mywajs/
License: Apache License 2.0
wwebjs remake with playwright
Home Page: https://amiruldev20.github.io/mywajs/
License: Apache License 2.0
menerima segala saran dan request
There is no documentation on how to use the extra features
code:
await client.sendMessage(message.from, Buffer.from(await axios.get("https://plachta-vits-umamusume-voice-synthesizer.hf.space/file=/tmp/tmpo0uz5qw0/tmpvf0zdly7.wav", {responseType: "arraybuffer"}).then(r=>r.data)
Error:
page.evaluate: u at Client.sendMessage (/home/container/new-whatsapp-bot/node_modules/mywajs/src/Client.js:1136:45) at async eval (/home/container/new-whatsapp-bot/<anonymous>:1:15) { name: 'Error' }
Accep call and send calls on Whatsapp web api can work? it seems there is no calling feature in Whatsapp Web
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /nix/store/bwxril521b35zlf4x2g32hll64rzfhck-nodejs-16.7.0/bin/node /nix/store/bwxril521b35zlf4x2g32hll64rzfhck-nodejs-16.7.0/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/runner/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /home/runner/.npm/_cacache/tmp/git-clone-74629057/node_modules/playwright
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c node install.js
npm ERR! npm ERR! Removing unused browser at /home/runner/.cache/ms-playwright/webkit-1811
npm ERR! npm ERR! Downloading Webkit 16.4 (playwright build v1811) from https://playwright.azureedge.net/builds/webkit/1811/webkit-ubuntu-20.04.zip
npm ERR! npm ERR! | | 0% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■ | 10% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■■■■■■■■■ | 20% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 91.8 Mb
npm ERR! npm ERR! |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 91.8 Mb
npm ERR! npm ERR! /home/runner/.npm/_cacache/tmp/git-clone-74629057/node_modules/playwright-core/lib/server/registry/index.js:651
npm ERR! npm ERR! throw new Error(Failed to download ${title}, caused by\n${e.stack}
);
npm ERR! npm ERR! ^
npm ERR! npm ERR!
npm ERR! npm ERR! Error: Failed to download Webkit 16.4 (playwright build v1811), caused by
npm ERR! npm ERR! Error: Unknown system error -122: Unknown system error -122, write
npm ERR! npm ERR! at /home/runner/.npm/_cacache/tmp/git-clone-74629057/node_modules/playwright-core/lib/server/registry/index.js:651:13
npm ERR! npm ERR! at async Registry._downloadExecutable (/home/runner/.npm/_cacache/tmp/git-clone-74629057/node_modules/playwright-core/lib/server/registry/index.js:650:5)
npm ERR! npm ERR! at async Registry.install (/home/runner/.npm/_cacache/tmp/git-clone-74629057/node_modules/playwright-core/lib/server/registry/index.js:614:9)
npm ERR! npm ERR! at async installBrowsersForNpmInstall (/home/runner/.npm/_cacache/tmp/git-clone-74629057/node_modules/playwright-core/lib/server/registry/index.js:790:3)
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /home/runner/.npm/_logs/2023-04-24T10_47_47_863Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2023-04-24T10_47_50_621Z-debug.log
Kok jadi error ya bwang pas install, Run di replit
Would it be possible to use for this project? And if so, what do I have to take into account????
/home/runner/Fearless-wa-webjs/node_modules/wwebjs/src/util/Util.js:3
const fileType = require("file-type");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/Fearless-wa-webjs/node_modules/file-type/index.js from /home/runner/Fearless-wa-webjs/node_modules/wwebjs/src/util/Util.js not supported.
Instead change the require of index.js in /home/runner/Fearless-wa-webjs/node_modules/wwebjs/src/util/Util.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/home/runner/Fearless-wa-webjs/node_modules/wwebjs/src/util/Util.js:3:18)
at Object. (/home/runner/Fearless-wa-webjs/node_modules/wwebjs/src/Client.js:15:14)
at Object. (/home/runner/Fearless-wa-webjs/node_modules/wwebjs/index.js:16:13) {
code: 'ERR_REQUIRE_ESM'
}
Provide a documentation on how to use the library
Halo, I got this error. What does it mean?
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
at Promise.race.page.waitForSelector.timeout (file:///D:/Projects/mywaapi/node_modules/mywajs/src/Client.js:329:22)
at Client.initialize (file:///D:/Projects/mywaapi/node_modules/mywajs/src/Client.js:328:13) {
name: 'TimeoutError'
}
Error: Cannot find module 'D:\Projects\mywaapi\node_modules@wppconnect\wa-js\dist\wppconnect-wa.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1053:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1046:15)
at resolveExports (node:internal/modules/cjs/loader:554:14)
at Function.Module._findPath (node:internal/modules/cjs/loader:594:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1012:27)
at Function.resolve (node:internal/modules/cjs/helpers:114:19)
at Client.initialize (file:///D:/Projects/mywaapi/node_modules/mywajs/src/Client.js:248:27) {
code: 'MODULE_NOT_FOUND',
path: 'D:\Projects\mywaapi\node_modules\@wppconnect\wa-js\package.json'
}
Tidak dapat di download di WhatsApp
[MywaJS] Clearing trash & cache sessions...
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
at makeCallback (node:fs:186:3)
at Object.readdir (node:fs:1354:14)
at Timeout._onTimeout (file:///home/runner/Fearless-waweb/node_modules/mywajs/src/Client.js:184:46)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7) {
code: 'ERR_INVALID_CALLBACK'
} Promise {
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
at makeCallback (node:fs:186:3)
at Object.readdir (node:fs:1354:14)
at Timeout._onTimeout (file:///home/runner/Fearless-waweb/node_modules/mywajs/src/Client.js:184:46)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7) {
code: 'ERR_INVALID_CALLBACK'
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.