Skip to content

IRON-M4N/pair-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

    git clone https://github.com/IRON-M4N/pair-example.git
    cd pair-example
  2. Install dependencies

    npm install
  3. 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
    };
  4. Run the script

    npm start
    • To stop or restart, you can use:
      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

About

Pairing Code Example with @whiskeysockets/baileys

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published