A simple example of a pairing code server that uses @whiskeysockets/baileys
and stores session credentials in MEGA with an ID.
-
Clone the repository
git clone https://github.com/IRON-M4N/pair-example.git cd pair-example
-
Install dependencies
npm install
-
Configure your MEGA and session settings
- Edit
config.js
and set add your Mega account password and email and session prefix
module.exports = { EMAIL: "your-mega-email", PASS: "your-mega-password", PREFIX: "IRON-M4N×" // Customize your session ID prefix here };
- Edit
-
Run the script
npm start
- To stop or restart, you can use:
npm run stop npm run restart
- To stop or restart, you can use:
-
Pairing Usage
http://localhost:3000/pair?code=+6969696969