☠ Run It When I'm Dead
@rufatmammadli
Automatically code execution when you're dead byInstall
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
- npm install - Install the all dependencies.
- Paste the public Facebook profile URL into 'profileURL'.
- 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:
- Create an account.
- Create an app on the dashboard to get appId and secretKey credentials.
- Add appId, secretKey, userId and message:
let init = 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 = ; // Initializationlet init = 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 scannerinit; // Listen 'watch' eventinit;