Git Product home page Git Product logo

whatsappcli's Introduction

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.

Example

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

Example

Example

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)

Example

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

whatsappcli's People

Contributors

karimjedda avatar gpedro avatar

Watchers

James Cloos avatar jiandong 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.