Socket
Socket
Sign inDemoInstall

happn-bot

Package Overview
Dependencies
9
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

happn-bot


Version published
Weekly downloads
16
increased by1500%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

HAPPN BOT - NODEJS

Bot for happn dating app including facebook login, like and dislike, with or without criterias. It includes recommandations and shortlist. I'm using happn-api package from https://www.npmjs.com/package/happn-api.

INSTALL

yarn add happn-bot
// or
npm install happn-bot

CONFIG

Create a .env file at the root of the project. Add your facebook account details in it :

FACEBOOK_EMAIL=email@gmail.com
FACEBOOK_PASSWORD=YoUrPaSsWoRd

1.0.7 breaking change

citeriaTraits "value" string has been replace by "values" string array. Example has been updated.

EXAMPLE

const happnBot = require('happn-bot');
// or
import happnBot from 'happnBot';

const criterias = {
    criteriaMinAge: 34,
    criteriaMaxAge: 40,
    criteriaGender: 'female',
    criteriaMinPictures: 3,
    criteriaTraits: [
        {
            name: 'Exercise',
            values: ['Occasional exercise', 'Enough cardio to keep up'],
        },
        {
            name: 'Smoking',
            values: ['Well, I smoke', 'Not a fan, but whatever'],
        },
        {
            name: 'Kids',
            values: ['I love the ones I have', 'Thanks, but no thanks'],
        },
        {
            name: 'Partying',
            values: ['I’m in bed by midnight', 'I party in moderation'],
        },
    ],
};
// Save pictures of people you like
// Will be downloaded inside /pictures/yyyy-MM-dd/first-name-age/
const savePictures = true;

// Start bot
happnBot.start(savePictures, criterias);

CRITERIAS

const criteriaTraitsList = [
    {
        name: 'Looking for',
        values: [
            'A relationship',
            'Nothing serious',
            'I’ll know when I find it'
        ],
    },
    {
        name: 'Exercise',
        values: [
            'Occasional exercise',
            'Enough cardio to keep up',
            'All exercise all the time',
        ],
    },
    {
        name: 'Cooking',
        values: [
            'I’m a microwave master',
            'I’m a delivery expert',
            'I know a few good recipes',
            'I’m an excellent chef',
        ],
    },
    {
        name: 'Travel',
        values: [
            'Hiking & backpack',
            'Deckchair & sunscreen',
            'Museum & postcards',
        ],
    },
    {
        name: 'Partying',
        values: [
            'I’m in bed by midnight',
            'I party in moderation',
            'I’m a night owl',
        ],
    },
    {
        name: 'Smoking',
        values: [
            'Well, I smoke',
            'Not a fan, but whatever',
            'Zero tolerance'
        ],
    },
    {
        name: 'Kids',
        values: [
            'I love the ones I have',
            'I have some, but want more',
            'I’d like some, thanks',
            'Thanks, but no thanks',
        ],
    },
];

INFORMATIONS

I'm still working on this project, on the criteria's part to make it easyier to fill. I also have too many duplicate code si I need to refactor.

FAQs

Last updated on 10 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc