Coder Social home page Coder Social logo

whatsapp-bot's Introduction

WhatsApp-bot


Deploy


๐Ÿ’ˆ Preview

  • Fully Modular Design
  • Written in TypeScript
  • Built with Baileys (A Lightweight full-featured WhatsApp Library)
  • Powered by ExpressJs
  • Database handled via MongoDB
  • Self-Auth restoration

๐Ÿ“™ Guide

๐Ÿ’ช Contributing

  • Feel free to open issues regarding any problems or if you have any feature requests
  • Make sure to follow the ESLint Rules while editing the code and run yarn format before opening Pull request

๐ŸŽ License

WhatsApp-bot is free and open-source software licensed under the GNU Affero General Public License v3.0.

whatsapp-bot's People

Contributors

aliaryantech avatar bilal-08 avatar luckyyam avatar restyled-commits 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

Watchers

 avatar  avatar  avatar

whatsapp-bot's Issues

Still pm2 not found

app[web.1]: yarn pm2 start dist/bot.js && yarn pm2 save && yarn pm2 logs bot
app[web.1]: error Command "pm2" not found.

Features Request

Anit Call & Disable cmd features

Dear @LuckyYam can you please add those features in bot it'll be helpful and thanks for helping....

CRASHING

Crashing in 500+ members group when you execute a command.

Closing stale open session for new outgoing prekey bundle
2022-08-01T11:33:09.258457+00:00 app[web.1]: Closing session: SessionEntry {
2022-08-01T11:33:09.258458+00:00 app[web.1]: _chains: {
2022-08-01T11:33:09.258459+00:00 app[web.1]: 'BS/5bnsQMDe19CqMOQI+3j8Sj/4rPX7gGoNeGfjxQvME': { chainKey: [Object], chainType: 1, messageKeys: {} }
2022-08-01T11:33:09.258459+00:00 app[web.1]: },
2022-08-01T11:33:09.258460+00:00 app[web.1]: registrationId: 1851881563,
2022-08-01T11:33:09.258460+00:00 app[web.1]: currentRatchet: {
2022-08-01T11:33:09.258460+00:00 app[web.1]: ephemeralKeyPair: {
2022-08-01T11:33:09.258461+00:00 app[web.1]: pubKey: <Buffer 05 2f f9 6e 7b 10 30 37 b5 f4 2a 8c 39 02 3e de 3f 12 8f fe 2b 3d 7e e0 1a 83 5e 19 f8 f1 42 f3 04>,
2022-08-01T11:33:09.258461+00:00 app[web.1]: privKey: <Buffer f0 16 7c 14 e7 2e 58 53 d6 f1 51 ed 28 1f 42 ce 31 38 ce 35 bc 70 60 20 97 2b fe 29 16 78 b8 43>
2022-08-01T11:33:09.258462+00:00 app[web.1]: },
2022-08-01T11:33:09.258462+00:00 app[web.1]: lastRemoteEphemeralKey: <Buffer 05 a9 c4 1f ee 34 fe 2b 93 c2 71 fb 65 79 04 a1 4a 1c 78 05 1c a2 2a e0 bc 16 bb 32 67 e7 96 57 7a>,
2022-08-01T11:33:09.258462+00:00 app[web.1]: previousCounter: 0,
2022-08-01T11:33:09.258463+00:00 app[web.1]: rootKey: <Buffer c8 90 c4 b8 cb 81 93 90 bd 3c bd 62 14 23 60 da 3e c9 1d 64 e1 02 6f b9 83 40 11 e6 db 97 ec 3e>
2022-08-01T11:33:09.258463+00:00 app[web.1]: },
2022-08-01T11:33:09.258463+00:00 app[web.1]: indexInfo: {
2022-08-01T11:33:09.258464+00:00 app[web.1]: baseKey: <Buffer 05 ba 44 6e 92 90 27 dc 63 65 bd 83 b3 99 8d c1 9b 2c 7e f4 1f dd 05 b4 64 f7 61 55 f2 d2 c2 51 4b>,
2022-08-01T11:33:09.258464+00:00 app[web.1]: baseKeyType: 1,
2022-08-01T11:33:09.258464+00:00 app[web.1]: closed: -1,
2022-08-01T11:33:09.258465+00:00 app[web.1]: used: 1659348783075,
2022-08-01T11:33:09.258467+00:00 app[web.1]: created: 1659348783075,
2022-08-01T11:33:09.258468+00:00 app[web.1]: remoteIdentityKey: <Buffer 05 53 29 bf dc a3 6c c7 eb b4 a1 89 82 80 08 a5 ae 5d d4 6c 3c bd 1a ea 2d d7 7a 91 5d 97 44 8d 58>
2022-08-01T11:33:09.258468+00:00 app[web.1]: },
2022-08-01T11:33:09.258468+00:00 app[web.1]: pendingPreKey: {
2022-08-01T11:33:09.258469+00:00 app[web.1]: signedKeyId: 2,
2022-08-01T11:33:09.258469+00:00 app[web.1]: baseKey: <Buffer 05 ba 44 6e 92 90 27 dc 63 65 bd 83 b3 99 8d c1 9b 2c 7e f4 1f dd 05 b4 64 f7 61 55 f2 d2 c2 51 4b>

help

hello, how to add command, I tried to add but not detected

โœจโœจ

Comment down the commands/features that you wanna see in this bot.

BOT NOT STARTING

Starting process with command yarn start
2022-08-20T05:38:43.734134+00:00 heroku[web.1]: Process exited with status 1
2022-08-20T05:38:43.409201+00:00 app[web.1]: yarn run v1.22.19
2022-08-20T05:38:43.458273+00:00 app[web.1]: $ node --max-old-space-size=4096 dist/bot.js
2022-08-20T05:38:43.543460+00:00 app[web.1]: node:internal/modules/cjs/loader:959
2022-08-20T05:38:43.543462+00:00 app[web.1]: throw err;
2022-08-20T05:38:43.543462+00:00 app[web.1]: ^
2022-08-20T05:38:43.543462+00:00 app[web.1]:
2022-08-20T05:38:43.543462+00:00 app[web.1]: Error: Cannot find module '/app/dist/bot.js'
2022-08-20T05:38:43.543463+00:00 app[web.1]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
2022-08-20T05:38:43.543464+00:00 app[web.1]: at Function.Module._load (node:internal/modules/cjs/loader:804:27)
2022-08-20T05:38:43.543464+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
2022-08-20T05:38:43.543465+00:00 app[web.1]: at node:internal/main/run_main_module:17:47 {
2022-08-20T05:38:43.543465+00:00 app[web.1]: code: 'MODULE_NOT_FOUND',
2022-08-20T05:38:43.543465+00:00 app[web.1]: requireStack: []

pm2 not found error

pm2 start dist/bot.js --node-args="--max-old-space-size=4096" && pm2 save && pm2 logs bot
app[web.1]: /bin/sh: 1: pm2: not found
app[web.1]: error Command failed with exit code 127.
app[web.1]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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.