• Stars
    star
    411
  • Rank 104,739 (Top 3 %)
  • Language
    Python
  • Created over 8 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Allows user to take full control of the terminal of their computer through Facebook's messaging service.

Terminal on Facebook Messenger

TFM ver. 1.9

Allows user to take full control of the terminal of their computer through Facebook's messaging service.

Photo

Disclamer

I shall not collect user's content or information, or otherwise access Facebook, using automated means (such as harvesting bots, robots, spiders, or scrapers) without user's prior permission.

Run

To use the script to full extent, make sure that you keep it at the home directory. Run it like this :

python ~/main.py

Screenshot

Enter your facebook username and password when prompted.

Alternatively, you can automate authentication. Create settings.txt file in repo's folder, and write email and password there in following format:

[main]
email = [email protected]
password = passwordwithoutquotes

Wait till it sets up. To make sure that it has setup, your url should be 'https://facebook.com/messages/*your own username*.

To send the commands, search for your own name on the messenger and send commands to it.

While using the set ... as ... command, you can create a file named commands.txt and write the Alias name in the following format (seperated by single space):

Alias_command_without_quotes  actual_command_without_quotes

The file has been included in the repo, which has some useful commands for Mac.

Dependencies

Selenium

pip install selenium

Chrome

Link for proper installation.

Commands

Command Function
save file *path/file_name.format* Saves the file sent along with the command at the path
save img *path/image_name.png* Saves the image sent along with the command at the path
senddir *relative_directory_path* Sends directory after coverting to .zip
set *new_command_name* as *actual_command* Define alias name for command
show *relative_file_path / URL* Previews any file or a URL
memory Gives The current Memory Stats of the machine
send *relative_file_path* Sends file
help Lists the commands that can be used
quit Quit current session

Any other command you might normally use on your CLI.

Updates

  • Added save img and save file command.
  • File permssion changes for settings.txt on log-in and quitting
  • Added senddir command.
  • Fixed misc. bugs.
  • CPU and Chill.
  • Added set ... as command.
  • Reduced dependencies on machine generated id's and classes.
  • Auto-authentification from settings file (Pushed by @tedmx).
  • Disabled Chrome Notifications (Pushed by @mmplisskin).
  • Added show command.
show URL (https://www.foo.bar) /Relative FilePath 'Foo/Bar/main.py'
  • Shifted to Chrome.
  • Faster Log-In .
  • Added memory command, to get current memory stats of the machine.
  • Added quit and help commands.
help : Displays the commands which can be used
quit : quit session
  • Addded condition for proper log-in.
  • Using getpass() to hide password (Pushed by @idoqo).
  • Support for Python 2.7 (Pushed by @amitt001).
  • Added support for sending files and cd. Type following commands on.Messenger :
cd __dirPath
send __filePath

Future Improvements

  • Add support for cd.
  • Send files.
  • Switch to PhantomJS. (Chucking the idea, as error in the build of PhantomJS which doesn't allow file upload.)
  • Error Logs.
  • Running in backgroud thread.
  • Fix all the bugs.

License

Apache-2.0

More Repositories

1

Transformers-RL

An easy PyTorch implementation of "Stabilizing Transformers for Reinforcement Learning"
Python
166
star
2

C2AE-Multilabel-Classification

Tensorflow implementation for the paper 'Learning Deep Latent Spaces for Multi-Label Classfications' in AAAI 2017
Python
98
star
3

Neural-Architecture-Search-with-RL

Minimal Tensorflow implementation of the paper "Neural Architecture Search With Reinforcement Learning" presented at ICLR 2017
Python
42
star
4

gym-render-browser

Render RL environments on a web browser with just one extra line of code.
Python
19
star
5

model-based-atari

An easy to understand implementation of the paper "Model-Based Reinforcement Learning for Atari"
Python
14
star
6

keras2pytorch

Covert Keras models to Pytorch
Python
11
star
7

data-driven-robotics

A boilerplate (dbs, envs, teleop, models, web-apps) for robotic learning experiments & a Pytorch Implementation of "Learning Latent Plans from Play".
Python
9
star
8

Multilabel-Classification-Datasets

A collection of dataset blobs for multi label classification
Python
8
star
9

SORB

Experiment friendly non-ipython notebook version of "Search on the Replay Buffer"
Python
5
star
10

tf.attention

Plug-and-Play version of Attention implemented in Tensorflow
Python
2
star
11

SparseNet

A scikit-learn based implementation of Sparse-Net.
Python
2
star
12

Github-Repo-Getter

A simple script to get all the repositories of a Github User
Python
1
star
13

CarGame.cpp

A simple car game built in C++(98) as a high school project.
C++
1
star
14

DSA-NITW

AVOID AVOID AVOID!
C++
1
star
15

OffensEval

Python
1
star
16

keras-alexnet

Python
1
star
17

rl-safety-imagination

Python
1
star
18

image-caption

Python
1
star
19

Almabase-deduper

A web interface to identify duplicate data in your csv file using ML
Python
1
star
20

Parsed-V8-Node-Memory-Profiler

Parsed output for the V8-Node memory bindings
JavaScript
1
star