https://github.com/cstayyab/whatsbot
WhatsBot can be attached to any WhatsApp account and it will respond to message containing specific commands.
https://github.com/cstayyab/whatsbot
bot bot-framework whatsapp whatsapp-bot
Last synced: about 2 months ago
JSON representation
WhatsBot can be attached to any WhatsApp account and it will respond to message containing specific commands.
- Host: GitHub
- URL: https://github.com/cstayyab/whatsbot
- Owner: cstayyab
- License: gpl-3.0
- Created: 2020-03-16T04:59:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-16T05:02:54.000Z (over 6 years ago)
- Last Synced: 2024-10-12T10:11:07.165Z (over 1 year ago)
- Topics: bot, bot-framework, whatsapp, whatsapp-bot
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WhatsBot
WhatsBot can be attached to any WhatsApp account and it will respond to message containing specific commands.
## Example Commands
As an example following two commands has been added. A message is considered as command if it starts with an exclamation mark(!).
### `echo` Command
```
!echo This is a message
```
This will echo the given string (This is a message) in reply to the message.
### `github` Command
```
!github cstayyab WALC
```
This will return the information of the github repository in reply to the message. Here is a sample reply:
```
*cstayyab/WALC*
*Description:* A WhatsApp Desktop client for linux systems. This is an unofficial client. Use https://web.whatsapp.com for official web client as official desktop client for linux does not exist.
*Forks:* 5
*Stars:* 19
*License:* GNU General Public License v3.0
```
## Other Usecases
It can be deployed by people who are running a store and want to give users the facility to order a product. The sample commands can be following:
```
!list
```
The "list" commands can list products with the unique identifier that can be used in subsequent commands.
```
!order P1303 4
```
The above commands orders the product P1303 and quantity 4.
# Contributions
You are welcome to controibute to routines folder. Create a script with a set of commands and functions. You can find an example in `routines/github.js` file.