GithubHelp home page GithubHelp logo

paiiss / bot-wa Goto Github PK

View Code? Open in Web Editor NEW
40.0 1.0 21.0 254 KB

Whatsapp bot using Bailey multi device

License: Apache License 2.0

TypeScript 99.19% JavaScript 0.23% HTML 0.42% CSS 0.01% Dockerfile 0.14%
bot whatsapp whatsapp-bot whatsapp-api whatsapp-stickers bot-wa-termux mongodb nodejs wa-bot

bot-wa's Introduction

PFP

Allen Bot Whatsapp Multi Device

Allen x Kobo

TypeScript NodeJS MongoDB

Deploy

Lightweight WhatsApp Bot & 100+ features

โœจ Highlights


  • Written in TypeScript
  • Has a plugin that makes it easier to condition the user
  • Easy to maintenace without turning off the bot
  • Made with Baileys - MD (Best Library right now)
  • Has anti nsfw and NSFW detection features
  • Using mongodb atlas (cluster example is in app.json)
  • Suitable for those who want to learn Typescript programming

๐ŸฆŽ Self-Hosting

๐Ÿ“„ License

๐Ÿ“‘ FAQ

๐Ÿ’ช Contributing


  • Feel free to open an issue regarding any issue or if you have any feature requests

  • Make sure to follow the ESLint Rules while editing the code and run npm run prettier-format before opening PRs

  • If you want to contribute

    1. Fork this repository
    2. edit/change what you want, for example you want to add features/fix bugs
    3. Test first
    4. You can submit a pull request
    5. If it accepts then delete the old fork and the new fork if you want to pull the request again

๐ŸŒ Join Us

Whatsapp Group

WhatsApp

$$ Allen BotWhatsappMD $$

bot-wa's People

Contributors

lol-human avatar paiiss 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

Watchers

 avatar

bot-wa's Issues

ANIME FEATURES

Can you please add anime features, I have pokemon, anime, quiz & economy features which I can contribute...

MongoDB Error

example : 1. mongodb+srv://yourantithesist:<password>@cluster0.d7sagsk.mongodb.net/?retryWrites=true&w=majority
                 2. mongodb+srv://yourantithesist:<password>@cluster0.d7sagsk.mongodb.net/wa-bot

result :

โ•ญโ”€โ”€โ”€ [ LOG ]
โ”œ [  STATS  ] Error connecting mongodb, please make sure the url is correct!
MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
    at NativeConnection.Connection.openUri (/root/bot-wa/node_modules/mongoose/lib/connection.js:694:11)
    at /root/bot-wa/node_modules/mongoose/lib/index.js:381:10
    at /root/bot-wa/node_modules/mongoose/lib/helpers/promiseOrCallback.js:41:5
    at new Promise (<anonymous>)
    at promiseOrCallback (/root/bot-wa/node_modules/mongoose/lib/helpers/promiseOrCallback.js:40:10)
    at Mongoose._promiseOrCallback (/root/bot-wa/node_modules/mongoose/lib/index.js:1234:10)
    at Mongoose.connect (/root/bot-wa/node_modules/mongoose/lib/index.js:380:20)
    at mongodb (/root/bot-wa/src/utils/database/mongodb.ts:6:10)
    at Object.<anonymous> (/root/bot-wa/src/main.ts:8:8)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Module.m._compile (/root/bot-wa/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Object.require.extensions.<computed> [as .ts] (/root/bot-wa/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)

Rpg game

I want to continue this rpg game on bot wa, but I have no idea, can anyone help me?

Crash "@adiwajshing/baileys"' has no exported member named 'MessageUpdateType'. Did you mean 'MessageUpsertType'?

Hello, I am trying to deploy your bot to Heroku. I set up the MongoDB Atlas URL / Credentials correctly, everything should run fine except I get this error in heroku's console:

'"@adiwajshing/baileys"' has no exported member named 'MessageUpdateType'. Did you mean 'MessageUpsertType'?

Am I doing something wrong?

  2022-07-27T01:12:23.640671+00:00 app[web.1]: > [email protected] server

2022-07-27T01:12:23.640672+00:00 app[web.1]: > ts-node --project ./tsconfig.json -r tsconfig-paths/register src/main.ts --server

2022-07-27T01:12:23.640672+00:00 app[web.1]: 

2022-07-27T01:12:29.964415+00:00 app[web.1]: /allen/node_modules/ts-node/src/index.ts:859

2022-07-27T01:12:29.964440+00:00 app[web.1]:     return new TSError(diagnosticText, diagnosticCodes, diagnostics);

2022-07-27T01:12:29.964440+00:00 app[web.1]:            ^

2022-07-27T01:12:29.966464+00:00 app[web.1]: TSError: โจฏ Unable to compile TypeScript:

2022-07-27T01:12:29.966470+00:00 app[web.1]: src/utils/connect.utils.ts(1,59): error TS2724: '"@adiwajshing/baileys"' has no exported member named 'MessageUpdateType'. Did you mean 'MessageUpsertType'?

2022-07-27T01:12:29.966471+00:00 app[web.1]: 

2022-07-27T01:12:29.966471+00:00 app[web.1]:     at createTSError (/allen/node_modules/ts-node/src/index.ts:859:12)

2022-07-27T01:12:29.966472+00:00 app[web.1]:     at reportTSError (/allen/node_modules/ts-node/src/index.ts:863:19)

2022-07-27T01:12:29.966472+00:00 app[web.1]:     at getOutput (/allen/node_modules/ts-node/src/index.ts:1077:36)

2022-07-27T01:12:29.966472+00:00 app[web.1]:     at Object.compile (/allen/node_modules/ts-node/src/index.ts:1433:41)

2022-07-27T01:12:29.966472+00:00 app[web.1]:     at Module.m._compile (/allen/node_modules/ts-node/src/index.ts:1617:30)

2022-07-27T01:12:29.966473+00:00 app[web.1]:     at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)

2022-07-27T01:12:29.966474+00:00 app[web.1]:     at Object.require.extensions.<computed> [as .ts] (/allen/node_modules/ts-node/src/index.ts:1621:12)

2022-07-27T01:12:29.966474+00:00 app[web.1]:     at Module.load (node:internal/modules/cjs/loader:981:32)

2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Function.Module._load (node:internal/modules/cjs/loader:822:12)

2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {

2022-07-27T01:12:29.966476+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]

2022-07-27T01:12:29.966476+00:00 app[web.1]: }

2022-07-27T01:12:29.980965+00:00 app[web.1]: npm notice 

2022-07-27T01:12:29.981041+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0

2022-07-27T01:12:29.981191+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>

2022-07-27T01:12:29.981235+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!

2022-07-27T01:12:29.981359+00:00 app[web.1]: npm notice 

2022-07-27T01:12:30.111536+00:00 heroku[web.1]: Process exited with status 1

2022-07-27T01:12:30.221335+00:00 heroku[web.1]: State changed from starting to crashed

full log (it starts halfway an error for some reason)


2022-07-27T00:20:18.954692+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {

2022-07-27T00:20:18.954692+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]

2022-07-27T00:20:18.954693+00:00 app[web.1]: }

2022-07-27T00:20:18.969071+00:00 app[web.1]: npm notice 

2022-07-27T00:20:18.969153+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0

2022-07-27T00:20:18.969300+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>

2022-07-27T00:20:18.969351+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!

2022-07-27T00:20:18.969493+00:00 app[web.1]: npm notice 

2022-07-27T00:20:19.097712+00:00 heroku[web.1]: Process exited with status 1

2022-07-27T00:20:19.149436+00:00 heroku[web.1]: State changed from starting to crashed

Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...

2022-07-27T00:20:18.954692+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {

2022-07-27T00:20:18.954692+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]

2022-07-27T00:20:18.954693+00:00 app[web.1]: }

2022-07-27T00:20:18.969071+00:00 app[web.1]: npm notice 

2022-07-27T00:20:18.969153+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0

2022-07-27T00:20:18.969300+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>

2022-07-27T00:20:18.969351+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!

2022-07-27T00:20:18.969493+00:00 app[web.1]: npm notice 

2022-07-27T00:20:19.097712+00:00 heroku[web.1]: Process exited with status 1

2022-07-27T00:20:19.149436+00:00 heroku[web.1]: State changed from starting to crashed

2022-07-27T01:12:07.267778+00:00 heroku[web.1]: State changed from crashed to starting

2022-07-27T01:12:21.820252+00:00 heroku[web.1]: Starting process with command `/bin/sh -c npm\ run\ server`

2022-07-27T01:12:23.640658+00:00 app[web.1]: 

2022-07-27T01:12:23.640671+00:00 app[web.1]: > [email protected] server

2022-07-27T01:12:23.640672+00:00 app[web.1]: > ts-node --project ./tsconfig.json -r tsconfig-paths/register src/main.ts --server

2022-07-27T01:12:23.640672+00:00 app[web.1]: 

2022-07-27T01:12:29.964415+00:00 app[web.1]: /allen/node_modules/ts-node/src/index.ts:859

2022-07-27T01:12:29.964440+00:00 app[web.1]:     return new TSError(diagnosticText, diagnosticCodes, diagnostics);

2022-07-27T01:12:29.964440+00:00 app[web.1]:            ^

2022-07-27T01:12:29.966464+00:00 app[web.1]: TSError: โจฏ Unable to compile TypeScript:

2022-07-27T01:12:29.966470+00:00 app[web.1]: src/utils/connect.utils.ts(1,59): error TS2724: '"@adiwajshing/baileys"' has no exported member named 'MessageUpdateType'. Did you mean 'MessageUpsertType'?

2022-07-27T01:12:29.966471+00:00 app[web.1]: 

2022-07-27T01:12:29.966471+00:00 app[web.1]:     at createTSError (/allen/node_modules/ts-node/src/index.ts:859:12)

2022-07-27T01:12:29.966472+00:00 app[web.1]:     at reportTSError (/allen/node_modules/ts-node/src/index.ts:863:19)

2022-07-27T01:12:29.966472+00:00 app[web.1]:     at getOutput (/allen/node_modules/ts-node/src/index.ts:1077:36)

2022-07-27T01:12:29.966472+00:00 app[web.1]:     at Object.compile (/allen/node_modules/ts-node/src/index.ts:1433:41)

2022-07-27T01:12:29.966472+00:00 app[web.1]:     at Module.m._compile (/allen/node_modules/ts-node/src/index.ts:1617:30)

2022-07-27T01:12:29.966473+00:00 app[web.1]:     at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)

2022-07-27T01:12:29.966474+00:00 app[web.1]:     at Object.require.extensions.<computed> [as .ts] (/allen/node_modules/ts-node/src/index.ts:1621:12)

2022-07-27T01:12:29.966474+00:00 app[web.1]:     at Module.load (node:internal/modules/cjs/loader:981:32)

2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Function.Module._load (node:internal/modules/cjs/loader:822:12)

2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {

2022-07-27T01:12:29.966476+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]

2022-07-27T01:12:29.966476+00:00 app[web.1]: }

2022-07-27T01:12:29.980965+00:00 app[web.1]: npm notice 

2022-07-27T01:12:29.981041+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0

2022-07-27T01:12:29.981191+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>

2022-07-27T01:12:29.981235+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!

2022-07-27T01:12:29.981359+00:00 app[web.1]: npm notice 

2022-07-27T01:12:30.111536+00:00 heroku[web.1]: Process exited with status 1

2022-07-27T01:12:30.221335+00:00 heroku[web.1]: State changed from starting to crashed

Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...

2022-07-27T01:12:29.966475+00:00 app[web.1]:     at Module.require (node:internal/modules/cjs/loader:1005:19) {

2022-07-27T01:12:29.966476+00:00 app[web.1]:   diagnosticCodes: [ 2724 ]

2022-07-27T01:12:29.966476+00:00 app[web.1]: }

2022-07-27T01:12:29.980965+00:00 app[web.1]: npm notice 

2022-07-27T01:12:29.981041+00:00 app[web.1]: npm notice New minor version of npm available! 8.11.0 -> 8.15.0

2022-07-27T01:12:29.981191+00:00 app[web.1]: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.0>

2022-07-27T01:12:29.981235+00:00 app[web.1]: npm notice Run `npm install -g [email protected]` to update!

2022-07-27T01:12:29.981359+00:00 app[web.1]: npm notice 

2022-07-27T01:12:30.111536+00:00 heroku[web.1]: Process exited with status 1

2022-07-27T01:12:30.221335+00:00 heroku[web.1]: State changed from starting to crashed

FEATURES

Hi bro, I followed you on IG. I have some whatsapp bot features but I need your help. Please reach me asap. Ty

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.