stegripe / bajigur Goto Github PK
View Code? Open in Web Editor NEWA simple and easy-to-use WhatsApp bot project, written in TypeScript.
License: GNU Affero General Public License v3.0
A simple and easy-to-use WhatsApp bot project, written in TypeScript.
License: GNU Affero General Public License v3.0
Log:
const isDataURL = (s) => !!s.match(/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[\w\W]*?[^;])*),(.+)$/g);
^
TypeError: Cannot read properties of undefined (reading 'match')
at isDataURL (D:\Data\WebProjects\whatsapp-bot\node_modules\@open-wa\wa-automate\dist\utils\tools.js:133:30)
at Client.<anonymous> (D:\Data\WebProjects\whatsapp-bot\node_modules\@open-wa\wa-automate\dist\api\Client.js:1572:40)
at Generator.next (<anonymous>)
at D:\Data\WebProjects\whatsapp-bot\node_modules\@open-wa\wa-automate\dist\api\Client.js:27:71
at new Promise (<anonymous>)
at __awaiter (D:\Data\WebProjects\whatsapp-bot\node_modules\@open-wa\wa-automate\dist\api\Client.js:23:12)
at Client.sendImage (D:\Data\WebProjects\whatsapp-bot\node_modules\@open-wa\wa-automate\dist\api\Client.js:1570:16)
at AvatarCommand.execute (file:///D:/Data/WebProjects/whatsapp-bot/dist/commands/general/AvatarCommand.js:18:39)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async file:///D:/Data/WebProjects/whatsapp-bot/dist/structures/WhatsappBot.js:18:17
there is a log like
"console.log ( Sticker Processed for $ {Runtime (t, moment ())} Seconds
) "
The commands doesn't work!
I need help with this error please.
I typed in order the commands, but it doesn't work
PS C:\Users\User\Desktop\Bot> npm start
npm WARN config global --global
, --local
are deprecated. Use `--location=glo
[email protected] start
node --es-module-specifier-resolution=node -r dotenv/config .
(node:5068) ExperimentalWarning: The Node.js specifier resolution flag is experi
(Use node --trace-warnings ...
to show where the warning was created)
C:\Users\User\Desktop\Bot\node_modules@open-wa\wa-automate-socket-cli
class Collection extends collection_1.default {
^
TypeError: Class extends value undefined is not a constructor or null
at Object. (C:\Users\User\Desktop\Bot\node_modules@ope
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (C:\Users\User\Desktop\Bot\node_modules@ope
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
The commands like !sticker doesnot run
Ntah knp udh pake kode yg sama cuma di versi baru WA automate malah error.
Kata console errornya di bagian:
................................................vvvvvvvv
if (availableCommands.has(command)) {
require(./commands/${command}
).run(bot, message, args);
}
Butuh bantuannya dong buat nge fix. Makasih.
thanks YOU brother
I've been hoping for this feature for a long time
I ran an experiment but it turns a video or GIF into an unmoving poster
Please also add a caption below a sticker, such as package author and package name
npm start
[email protected] start /root/qw
node --es-module-specifier-resolution=node -r dotenv/config .
internal/modules/cjs/loader.js:331
throw err;
^
Error: Cannot find module '/root/qw/dist'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:323:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:680:18)
at resolveMainPath (internal/modules/run_main.js:12:25)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:65:24)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
path: '/root/qw/package.json',
requestPath: '/root/qw'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node --es-module-specifier-resolution=node -r dotenv/config .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-10-31T03_19_53_192Z-debug.log
root@iZt4n399yyn07pki1eijsdZ:~/qw# npm start
[email protected] start /root/qw
node --es-module-specifier-resolution=node -r dotenv/config .
internal/modules/cjs/loader.js:331
throw err;
^
Error: Cannot find module '/root/qw/dist'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:323:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:680:18)
at resolveMainPath (internal/modules/run_main.js:12:25)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:65:24)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
path: '/root/qw/package.json',
requestPath: '/root/qw'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node --es-module-specifier-resolution=node -r dotenv/config .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-10-31T03_20_01_677Z-debug.log
root@iZt4n399yyn07pki1eijsdZ:~/qw#
Thank you for the project
I hope to add GIF animated stickers
When I test this bot, I can't use because start a loop with the message TIMEOUT and after CONNECTED.
[READY] 2020-11-20T16:46:53-03:00 => The sticker bot has been booted up!
[StateChange] StateChanged status: TIMEOUT
[StateChange] StateChanged status: CONNECTED
[StateChange] StateChanged status: TIMEOUT
[StateChange] StateChanged status: CONNECTED
[StateChange] StateChanged status: TIMEOUT
[StateChange] StateChanged status: CONNECTED
[StateChange] StateChanged status: TIMEOUT
[StateChange] StateChanged status: CONNECTED
[StateChange] StateChanged status: TIMEOUT
[StateChange] StateChanged status: CONNECTED
[StateChange] StateChanged status: TIMEOUT
[StateChange] StateChanged status: CONNECTED
[StateChange] StateChanged status: TIMEOUT
[StateChange] StateChanged status: CONNECTED
[email protected] start
node --env-file=.env .
node: bad option: --env-file=.env
Great project team!
Please dm me on discord for a license ๐
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@open-wa/wa-automate' imported from /home/pwolian/Documents/whatsapp-bot/dist/structures/WhatsappBot.js
at new NodeError (node:internal/errors:388:5)
at packageResolve (node:internal/modules/esm/resolve:910:9)
at moduleResolve (node:internal/modules/esm/resolve:959:20)
at defaultResolve (node:internal/modules/esm/resolve:1174:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:605:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:318:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
at link (node:internal/modules/esm/module_job:78:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@swc/core
, @types/node
, @whiskeysockets/baileys
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)Dockerfile
ghcr.io/hazmi35/node 21-dev-alpine
ghcr.io/hazmi35/node 21-alpine
.github/workflows/build-docker.yml
clytage/workflows main
.github/workflows/test.yml
clytage/workflows main
.node-version
node 20
package.json
@discordjs/collection 2.0.0
@hapi/boom ^10.0.1
@sapphire/utilities ^3.15.3
@whiskeysockets/baileys ^6.6.0
ffmpeg-static ^5.2.0
pino 9.0.0
pino-pretty ^11.0.0
qrcode-terminal ^0.12.0
tslib 2.6.2
wa-sticker ^1.0.14
@clytage/eslint-config ^3.0.1
@swc/cli 0.3.12
@swc/core ^1.5.0
@types/node 20.12.7
@typescript-eslint/eslint-plugin 7.7.1
@typescript-eslint/parser 7.7.1
eslint ^8.57.0
eslint-config-prettier 9.1.0
eslint-plugin-prettier 5.1.3
prettier 3.2.5
rimraf 5.0.5
ts-node 10.9.2
tsc-watch ^6.2.0
typescript 5.4.5
.nvmrc
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.