This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

runitwhenimdead

1.0.8 • Public • Published

☠ Run It When I'm Dead

Automatically code execution when you're dead by @rufatmammadli


(gif by @faedryn)

Install

npm i runitwhenimdead --save

Why?

I don't know, just for fun. Enjoy it! 🤘

How it works?

As you know, Facebook adds a 'Remembering' tag on the profiles of the users who have passed away (when their families or friends request so). Basically, the code is fetching the profile page in a specified interval and looking for the 'Remembering' tag. Obviously, it won't work if Facebook changes the structure of DOM elements. Keep that in mind and contribute. I'm using puppeteer library for fetching and DOM operations.

Usage

  1. npm install - Install the all dependencies.
  2. Paste the public Facebook profile URL into 'profileURL'.
  3. npm start - Start demo app.

Push Notification via chatbots

If you want to send push notifications via Messenger or Telegram, enable the integrated BotDelive configuration and follow these steps:

  1. Create an account.
  2. Create an app on the dashboard to get appId and secretKey credentials.
  3. Add appId, secretKey, userId and message:
let init = new riwimd({
    profileURL: "<FACEBOOK_PUBLIC_PROFILE_URL>",
    timer: 1000,
    appId: "<BotDelive_APP_ID>",
    secretKey: "<BotDelive_SECRET_KEY>",
    userId: "<BotDelive_USER_ID>",
    message: "<PUSH_MESSAGE>"
});

Complete documentation available at: https://botdelive.com/docs

Example

const riwimd = require('runitwhenimdead');
 
// Initialization
let init = new riwimd({
    profileURL: "<FACEBOOK_PUBLIC_PROFILE_URL>", // public facebook profile url
    timer: 1000, // scan interval in ms
 
    // SEND PUSH NOTIFICATION VIA MESSENGER, TELEGRAM WHEN YOU'RE DEAD
    // SIGN UP AT https://botdelive.com
 
    // appId: "<BotDelive_APP_ID>",
    // secretKey: "<BotDelive_SECRET_KEY>",
    // userId: "<BotDelive_USER_ID>",
    // message: "<PUSH_MESSAGE>"
});
 
// Start scanner
init.Start();
 
// Listen 'watch' event
init.on('watch', (data) => {
   console.log(data)
});

Package Sidebar

Install

npm i runitwhenimdead

Weekly Downloads

1

Version

1.0.8

License

MIT

Unpacked Size

27 kB

Total Files

10

Last publish

Collaborators

  • rufatmammadli