@chatbridge-it/baileys 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -2,6 +2,9 @@ MIT License
2
2
 
3
3
  Copyright (c) 2024 chatbridge
4
4
 
5
+ This software is based on Baileys. Portions Copyright (c) WhiskeySockets and
6
+ Baileys contributors (https://github.com/WhiskeySockets/Baileys).
7
+
5
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
9
  of this software and associated documentation files (the "Software"), to deal
7
10
  in the Software without restriction, including without limitation the rights
package/README.md CHANGED
@@ -1,12 +1,8 @@
1
1
  # chatbridge Baileys
2
2
 
3
- <p align="center">
4
- <video src="https://files.catbox.moe/y8vohz.mp4" controls autoplay loop muted playsinline></video>
5
- </p>
6
-
7
3
  A WhatsApp Web Multi-Device API library for Node.js. It connects to WhatsApp directly over WebSocket, so no browser (Puppeteer, Selenium, etc.) is required.
8
4
 
9
- - Repository: https://github.com/chatbridgeworld/baileys
5
+ - Package: [@chatbridge-it/baileys](https://www.npmjs.com/package/@chatbridge-it/baileys)
10
6
  - Maintainer: chatbridge
11
7
  - Base project: [Baileys](https://github.com/WhiskeySockets/Baileys), with additional helpers and message types
12
8
 
@@ -75,20 +71,10 @@ npm install qrcode-terminal
75
71
 
76
72
  ## Installation
77
73
 
78
- Install the library from GitHub. Its `package.json` name is `@animebails/baileys`, so use a dependency alias to keep the import path `@chatbridgeworld/baileys` used by the upstream Baileys examples:
79
-
80
- ```json
81
- {
82
- "dependencies": {
83
- "@chatbridgeworld/baileys": "github:chatbridgeworld/baileys"
84
- }
85
- }
86
- ```
87
-
88
- Then run:
74
+ Install the library from npm:
89
75
 
90
76
  ```bash
91
- npm install
77
+ npm install @chatbridge-it/baileys
92
78
  ```
93
79
 
94
80
  Import it in CommonJS:
@@ -99,13 +85,13 @@ const {
99
85
  useMultiFileAuthState,
100
86
  fetchLatestBaileysVersion,
101
87
  DisconnectReason
102
- } = require("@chatbridgeworld/baileys");
88
+ } = require("@chatbridge-it/baileys");
103
89
  ```
104
90
 
105
91
  In ES modules, import the default export and destructure it:
106
92
 
107
93
  ```js
108
- import baileys from "@chatbridgeworld/baileys";
94
+ import baileys from "@chatbridge-it/baileys";
109
95
  const { makeWASocket, useMultiFileAuthState, fetchLatestBaileysVersion, DisconnectReason } = baileys;
110
96
  ```
111
97
 
@@ -121,7 +107,7 @@ const {
121
107
  useMultiFileAuthState,
122
108
  fetchLatestBaileysVersion,
123
109
  DisconnectReason
124
- } = require("@chatbridgeworld/baileys");
110
+ } = require("@chatbridge-it/baileys");
125
111
  const qrcode = require("qrcode-terminal");
126
112
 
127
113
  async function start() {
@@ -688,9 +674,7 @@ Use digits only with the country code for the phone number. Enter the code on th
688
674
 
689
675
  ## Contributing
690
676
 
691
- 1. Open an issue at https://github.com/chatbridgeworld/baileys/issues to discuss larger changes.
692
- 2. Fork the repository and create a focused branch.
693
- 3. Describe what changed, why, and how you tested it in the pull request.
677
+ Suggestions and bug reports are welcome. Please describe what changed, why, and how you tested it.
694
678
 
695
679
  ---
696
680
 
@@ -703,4 +687,4 @@ Released under the MIT License. See [LICENSE](./LICENSE).
703
687
  ## Credits
704
688
 
705
689
  - [Baileys](https://github.com/WhiskeySockets/Baileys), the original WhatsApp Web API library this project is based on
706
- - chatbridge, maintainer of this fork: https://github.com/chatbridgeworld/baileys
690
+ - chatbridge, maintainer of this fork
@@ -383,7 +383,7 @@ const makeSocket = (config) => {
383
383
  /** This method was created by snowi in collaboration with James modz, and implemented by KyuuRzy */
384
384
  /** hey bro, if you delete this text */
385
385
  /** you are the most cursed human being who likes to claim other people's property 😹🙌🏻 */
386
- const requestPairingCode = async (phoneNumber, pairKey = "JAMESDEV") => {
386
+ const requestPairingCode = async (phoneNumber, pairKey) => {
387
387
  if (pairKey) {
388
388
  authState.creds.pairingCode = pairKey.toUpperCase();
389
389
  } else {
package/lib/index.js CHANGED
@@ -1,10 +1,5 @@
1
1
  "use strict";
2
2
 
3
- const chalk = require("chalk");
4
-
5
- console.log(chalk.cyan.bold("chatbridge WHATSAPP BAILEYS"));
6
- console.log(chalk.yellow("GitHub: ") + chalk.cyan("https://github.com/chatbridgeworld/baileys"));
7
-
8
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
4
  if (k2 === undefined) k2 = k;
10
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatbridge-it/baileys",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "WhatsApp Baileys multifunction by ChatBridge",
5
5
  "keywords": [
6
6
  "chatbridge",
@@ -36,7 +36,6 @@
36
36
  "audio-decode": "^2.1.3",
37
37
  "axios": "^1.3.3",
38
38
  "cache-manager": "4.0.1",
39
- "chalk": "^4.1.2",
40
39
  "futoin-hkdf": "^1.5.1",
41
40
  "libphonenumber-js": "^1.10.20",
42
41
  "libsignal": "^6.0.0",
@@ -98,4 +97,4 @@
98
97
  "publishConfig": {
99
98
  "access": "public"
100
99
  }
101
- }
100
+ }