Author: @rufatmammadli
npm i runitwhenimdead --save
I don't know, just for fun. Enjoy it! 🤘
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.
- npm install - Install the all dependencies.
- Paste the public Facebook profile URL into 'profileURL'.
- npm start - Start demo app.
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 = 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
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)
});