Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iron-m4n/pair-example
Pairing Code Example with @whiskeysockets/baileys
https://github.com/iron-m4n/pair-example
baileys express pairing whatsapp-bot whiskeysockets
Last synced: 23 days ago
JSON representation
Pairing Code Example with @whiskeysockets/baileys
- Host: GitHub
- URL: https://github.com/iron-m4n/pair-example
- Owner: IRON-M4N
- License: mit
- Created: 2024-10-11T08:14:56.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-10-18T02:20:38.000Z (27 days ago)
- Last Synced: 2024-10-20T14:48:26.206Z (24 days ago)
- Topics: baileys, express, pairing, whatsapp-bot, whiskeysockets
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Pairing Code Example with @whiskeysockets/baileys
A simple example of a pairing code server that uses `@whiskeysockets/baileys` and stores session credentials in MEGA with an ID.
## Getting Started
1. **Clone the repository**
```bash
git clone https://github.com/IRON-M4N/pair-example.git
cd pair-example
```2. **Install dependencies**
```bash
npm install
```3. **Configure your MEGA and session settings**
- Edit `config.js` and set add your Mega account password and email and session prefix```javascript
module.exports = {
EMAIL: "your-mega-email",
PASS: "your-mega-password",
PREFIX: "IRON-M4N×" // Customize your session ID prefix here
};
```4. **Run the script**
```bash
npm start
```- To stop or restart, you can use:
```bash
npm run stop
npm run restart
```5. **Pairing Usage**
```
http://localhost:3000/pair?code=+6969696969
```##### Readme is made from ChatGpt cuz takes too much energy to make one and explain it sooo...yeah
###### IRON-M4N