QuentinCG / jarvis-fb-messenger

[Done] Control Jarvis assistant (http://openjarvis.com/) remotely using Facebook Messenger
MIT License
4 stars 2 forks source link

Description

Speak with Jarvis assistant using Facebook Messenger app or facebook website.

Usage

Used as a normal chat app

You can use this plugin to communicate with Jarvis assistant with Facebook Messenger app or directly with facebook website.:

Used to send message and image to facebook user

(English)
You: Send a facebook message to XXXX
Jarvis: Facebook message sent to XXXX

(French)
You: Envoi un message facebook à XXXX
Jarvis: Message facebook envoyé à XXXX

How to install

1) Create a Facebook account which will be used as "sender" for your Jarvis communications.

2) Add this facebook account as friend to your main facebook account (the one you daily use).

3) Add this plugin to your Jarvis assistant (more info here): ./jarvis.sh -p https://github.com/QuentinCG/jarvis-fb-messenger (the installation may take up to 35 minutes).

4) Configure the configuration file to match your requirements: You need to specify your facebook Jarvis email address, password and some other options (don't specify user IDs yet).

5) Get Facebook IDs of people allowed to speak with Jarvis: Try to send a message from messenger to Jarvis (Jarvis must be launched): It will say that you don't have right to speak to him and will give you your ID.

6) Add those IDs in var_jv_pg_fb_allowed_people_ids in the configuration file to allow people to communicate with Jarvis.

7) For more security once the plugin is working: Update the configuration file to set var_jv_pg_fb_getId and var_jv_pg_fb_allow_control_to_all to False

8) Enjoy

IMPORTANT NOTE:

Facebook will more than likely flag your account as "bot". To prevent it, you should log in with your jarvis facebook account using a web browser at the same IP (and same device if possible) in order for facebook to "register" that you are not a bot. To do so, you can for example use chromium as web browser (X server must be activated if you are on SSH):

sudo apt install chromium chromium-l10n
chromium

Help

If you have difficulties making this plugin work, here are some advice:

Author

Quentin Comte-Gaz

License

This project is under MIT license. This means you can use it as you want (just don't delete the plugin header).

Contribute

If you want to add more examples or improve the plugin, just create a pull request with proper commit message and right wrapping.