Giter VIP home page Giter VIP logo

messcord's Introduction

MessCord

Facebook Messenger on Discord!


Every incoming message will create a new or find an existing text channel with the threadID being the name.

When sending messages, your UserBot will delete your discod message and send the facebook message and your facebook message will show.


npm install facebook-chat-api discord.js


Edit:

YOUR-GUILD-ID - Your Guild (private Guild)

PARENT-ID - Your text channel category (can be removed)

TOKEN - your bot token

Change the exisiting utils.js in node_modules\facebook-chat-api with the one in this repo.

{appState: JSON.parse(fs.readFileSync('appstate.json', 'utf8'))} Uses your cookies rather than logging in each time

it can be replaced with {email: "FB_EMAIL", password: "FB_PASSWORD"} which is slower.

to get your appState use the following:

login({email: "FB_EMAIL", password: "FB_PASSWORD"}, (err, api) => {
    if(err) return console.error(err);

    fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState()));
});

Make a Bot User and invite it to your server will full permissions.


To Do:

  • discord->facebook image support
  • command initiated conversations

Inspired by

https://github.com/antigravities/Steamcord

messcord's People

Contributors

zombietaco avatar

Stargazers

 avatar Tominous avatar

Watchers

Tominous 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.