Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/vasani-arpit/WBOT in…
Browse files Browse the repository at this point in the history
…to development
  • Loading branch information
vasani-arpit committed Jun 14, 2019
2 parents 1ded8c1 + 1faef91 commit 2aedf25
Show file tree
Hide file tree
Showing 11 changed files with 748 additions and 218 deletions.
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Contributing

1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request
402 changes: 402 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# WBOT

[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal]][paypal-donations]
[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal]][paypal-donations]


> A simple Nodejs BOT for whatsapp web
Expand Down Expand Up @@ -36,7 +36,7 @@

macOS | Windows | Linux
-----------------| ---| ---|
[Download v0.5-beta](https://github.com/vasani-arpit/WBOT/releases/download/v0.5-beta/WBOT-mac-0.5.zip) | [Download v0.5-beta](https://github.com/vasani-arpit/WBOT/releases/download/v0.5-beta/WBOT-win-0.5.zip) | [Download v0.5-beta](https://github.com/vasani-arpit/WBOT/releases/download/v0.5-beta/WBOT-linux-0.5.zip)
[Download v0.7-beta](https://github.com/vasani-arpit/WBOT/releases/download/v0.7-beta/wbot-mac-0.7.zip) | [Download v0.7-beta](https://github.com/vasani-arpit/WBOT/releases/download/v0.7-beta/wbot-linux-0.7.zip) | [Download v0.7-beta](https://github.com/vasani-arpit/WBOT/releases/download/v0.7-beta/wbot-win-0.7.zip)


## Supported Platforms
Expand Down Expand Up @@ -76,7 +76,6 @@ Basic Configuration is in bot.json file like replying to Hi, hello and happy bir
This is where all the application related(node application behavior and such things) config will stay. will add more in future.

- **headless** Whether to start chrome as headless or not. this is regarding #4. Apparently, Whatsapp doesn't allow headless instances.
- **darkmode** Enables dark theme in Whatsapp web. Useless if you select headless true
- **isGroupReply** Whether to send replies in group or not. If set to false Bot will not reply if message received in group chat.

**bot**
Expand All @@ -88,6 +87,8 @@ An array of objects. Properties of Object are self explanatory.

- **Response** If any of the above conditions becomes true then corresponding response string will be sent as message to the user or group.

- **file** name of the file (from current directory) which you want to send along with response

**Blocked**

Array of numbers with county code to which this bot will not reply to.
Expand Down Expand Up @@ -143,7 +144,11 @@ None. The idea was to get a better understanding of how things work together, Bu
- [Ora](https://www.npmjs.com/package/ora) for spinner
- [cli-progress](https://www.npmjs.com/package/cli-progress) for download progress bar in terminal
- [qrcode-terminal](https://www.npmjs.com/package/qrcode-terminal) to generate QRCode in terminal
- [mime](https://www.npmjs.com/package/mime) detect mime file sent

* **Convert Online File for Base64 Encode**

- https://www.base64-image.de/

* **Apart from development, What else do you do?**

Expand All @@ -161,10 +166,19 @@ If you find an issue, please report it here. For everything else, please drop me
[badge_paypal]: https://user-images.githubusercontent.com/6497827/53698092-42032280-3dfe-11e9-8054-1597c62d344e.png
[badge_patreon]: https://user-images.githubusercontent.com/6497827/53698102-4af3f400-3dfe-11e9-9749-4104ceb6ea3c.png
[badge_amazon]: https://user-images.githubusercontent.com/6497827/53698105-51826b80-3dfe-11e9-9e63-b14ad6ad7c19.png
[twitter_logo]: https://user-images.githubusercontent.com/6497827/57843958-c30e6b00-77ec-11e9-97bd-dfbc800f96a9.png
[telegram_logo]: https://user-images.githubusercontent.com/6497827/57844175-2ac4b600-77ed-11e9-8488-f2d45efa7497.png

[patreon]: https://www.patreon.com/arpit_vasani
[amazon]: http://amzn.in/iCUjhKZ
[paypal-donations]: https://www.paypal.me/arpitvasani
[twitter]: https://twitter.com/ArpitVasani
[telegram]: http://t.me/Arpit_Vasani

## Legal
This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by WhatsApp or any of its affiliates or subsidiaries. This is an independent and unofficial software. Use at your own risk. **Commercial use of this code/repo is strictly prohibited.**

## Contact Me

[![Contact me on twitter][twitter_logo]][twitter]
[![Contact me on telegram][telegram_logo]][telegram]
14 changes: 11 additions & 3 deletions bot.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
{
"contains": [],
"exact": ["hello"],
"response": "hi"
"response": "hi",
"file":"noFile.png"
},
{
"contains": [],
"exact": ["hy"],
"response": "hi"
"response": "hi",
"file":"github.png"
},
{
"contains": [],
Expand Down Expand Up @@ -53,6 +55,12 @@
"contains": ["janmdin","hardik","shubhkaamna"],
"exact": [],
"response": "aabhar 🙏"
},
{
"contains": [],
"exact": ["github"],
"response": "Git Hub Logo",
"file":"github.png"
}
],
"blocked": [],
Expand All @@ -61,4 +69,4 @@
"suggestions":["👍","Ha","aevu m?","Okay","Thanks"],
"clicktosend":true
}
}
}
17 changes: 11 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wbot",
"version": "1.0.0",
"version": "0.7.0",
"description": "A simple whatsapp reply bot using puppeteer.",
"main": "src/index.js",
"scripts": {
Expand Down Expand Up @@ -34,6 +34,7 @@
"homepage": "https://github.com/vasani-arpit/WBOT#readme",
"dependencies": {
"cli-progress": "^2.1.1",
"mime": "^2.4.4",
"node-fetch": "^2.3.0",
"ora": "^3.0.0",
"puppeteer-core": "^1.16.0",
Expand Down
Loading

0 comments on commit 2aedf25

Please sign in to comment.