Coder Social home page Coder Social logo

mywajs's Introduction

Hello, Im Amirul Dev ๐Ÿ˜Ž

Instagram Whatsapp GitHub amiruldev20

๐Ÿ“ƒ I'm currently learning:

Dart Go Java JavaScript Kotlin PHP

Express.JS Flutter Laravel Codeigniter React Vue.JS

Repo Stats ๐Ÿ”ฅ

github card

github card

github card

mywajs's People

Contributors

ahlulmukh avatar amiruldev20 avatar dikaardnt avatar gamersindo1223 avatar goldserver avatar raseldev18 avatar renzhxr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mywajs's Issues

Please doc

There is no documentation on how to use the extra features

Suggestion

Provide a documentation on how to use the library

Error when sending .wav file

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' }

Error in m.reply

TypeError: data.id.id.substring is not a function
0|deff | at Message._patch (file:///waweb/node_modules/mywajs/src/func/Message.js:92:75)
0|deff | at new Message (file:///waweb/node_modules/mywajs/src/func/Message.js:19:24)
0|deff | at Client.sendMessage (file:///waweb/node_modules/mywajs/src/Client.js:1029:32)
0|deff | at runNextTicks (node:internal/process/task_queues:60:5)
0|deff | at process.processImmediate (node:internal/timers:449:9)

MywaJS

menerima segala saran dan request

page.waitForSelector: Timeout 10000ms exceeded.

Halo, I got this error. What does it mean?
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^

page.waitForSelector: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for locator('[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]') to be visible

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'

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'
}

Waduh error nih bwang

[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'
}
}

[ERROR] > npm i wwebjs@https://github.com/amiruldev20/mywajs

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

Error [ERR_REQUIRE_ESM] bwang

/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'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.