GithubHelp home page GithubHelp logo

realrecordzlab / facebook-pager Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 205 KB

Simple cli tool for facebook messenger

JavaScript 98.76% Shell 1.24%
facebook messenger-bot messenger nodejs javascript

facebook-pager's Introduction

facebook-pager

A simple bot to automate messages reply for facebook personal account

scren

This is a simple bot for facebook messenger personal account, it will listen for new incoming messages and will autoreply to inform your contacts that you are not connected at the moment. All the messages are displayed inside the terminal window that is executing the process. Under the hood the script use the facebook chat api that is responsable to intercept messages received and forever monitor that will run the script until the terminal is closed.

I've made this script for fun and as an exercise with nodejs.

DISCLAIMER: I'm not responsable if your account gets banned for spammy activities such as sending lots of messages to people you don't know, sending messages very quickly, sending spammy looking URLs, logging in and out very quickly. Be responsable Facebook citizens.

INSTALLATION

Clone or download this repo and navigate to the folder

$ cd /Users/pcuser/facebook-pager

Install the needed dependencies

$ facebook-pager npm install

Before you can run the script, you need to create your custom .env file inside the repo folder. It will contain your facebook login credentials. Don't share it with anyone.

FB_EMAIL = [email protected]
FB_PWD = yourSuperSecretPassword 
FORCE_COLOR = 1

After the .env file is in place, you will be able to run the script.

Set a custom reply message for the bot by using the -m or --message command. Be sure to use the double quotes " to delimit your custom message and leave always a space after the ! char and the next word of your message when you use it.

$ facebook-pager node index.js -m "Hi! This is my awesome custom bot message."

facebook-pager's People

Contributors

realrecordzlab avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.