Giter Site home page Giter Site logo

stegripe / bajigur Goto Github PK

View Code? Open in Web Editor NEW
167.0 167.0 53.0 1.67 MB

A simple and easy-to-use WhatsApp bot project, written in TypeScript.

License: GNU Affero General Public License v3.0

TypeScript 96.52% Dockerfile 3.48%
bot nodejs sticker typescript whatsapp-bot

bajigur's People

Contributors

dependabot[bot] avatar mednoob avatar mzrtamp avatar noxzym avatar renovate-bot avatar renovate[bot] 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  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  avatar  avatar  avatar

bajigur's Issues

[Bug Report] Commands `/avatar` causing module crash

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

[Bug Report] TypeError: Class extends value undefined is not a constructor or null

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)

[Bug Report] Command is not defined

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.

[Bug Report] Please update the bot

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

[Question] ELIFECYCLE

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#

[Bug Report] StateChange error

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

[Bug Report] The bot is not responding to a command without any crash

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

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Fallback to renovate.json file as a preset is deprecated, please use a default.json file instead.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • ghcr.io/hazmi35/node 21-dev-alpine
  • ghcr.io/hazmi35/node 21-alpine
github-actions
.github/workflows/build-docker.yml
  • clytage/workflows main
.github/workflows/test.yml
  • clytage/workflows main
nodenv
.node-version
  • node 20
npm
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
nvm
.nvmrc

  • Check this box to trigger a request for Renovate to run again on this repository

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.