Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KarimJedda/whatsappcli
Control your server from Whatsapp
https://github.com/KarimJedda/whatsappcli
Last synced: 4 months ago
JSON representation
Control your server from Whatsapp
- Host: GitHub
- URL: https://github.com/KarimJedda/whatsappcli
- Owner: KarimJedda
- Created: 2015-10-19T16:49:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-22T13:53:43.000Z (over 9 years ago)
- Last Synced: 2024-07-31T22:51:08.618Z (7 months ago)
- Language: Python
- Size: 219 KB
- Stars: 677
- Watchers: 52
- Forks: 97
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whatsappcli
Control your server from Whatsapp# What it does?
It allows you to control a server or a group of servers using whatsapp. The script is installed on the server and runs in the background. There are two ways of controlling the server:
1. Send a command to be executed on the server through ```/exec command```, example: sending ```/exec ls -tr``` will execute the ```ls -tr``` on the server and return the results as a message on whatsapp.

2. Call a predefined python function on the server. At the moment, some dummy functions are present, like ```hello```, ```start_server```, ```memory_usage```, ```preparing_demo```..


In order to edit those functions, edit the ```src/routes.py``` file to suit your needs.
It can even send pictures over, or do some text to speech (it can tell jokes)

At the moment, there is no authentication or security, but it's planned.
I would not use it in production, it's a work in progress, but it already works well.For any questions just ask
# Installation
1. Install the image handling system dependencies on ```bash opt/system-requirements.sh```
2. Create a virtualenv and install the requirements ```pip install -r opt/requirements.pip```
3. Follow the instructions on ```src/config.py``` to get the whatsapp credentials
4. Edit the ```src/routes.py``` file to suit your CLI needs
5. Then just run the server with ```python src/server.py```# Credits
Heavily inspired by joaoricardo000's work - https://github.com/joaoricardo000/whatsapp-bot-seed