Giter Club home page Giter Club logo

whatsbot-auto's Introduction

Whatsbot (web.WhatsApp + Cleverbot.com)

Add cleverbots to your selected whatsapp chats.

A fairly simple JavaScript only code that connects a bot from https://cleverbot.com to a chat in https://web.whatsapp.com.

Note: Each bot opens in a new tab. So if you were chatting with 21 people; 21 additional tabs would be open.

Usage

Running

  1. Install Tampermonkey extension for Chrome or Greasemonkey for Firefox.
  2. In the installed extention, click Create new Scripts.
  3. Copy contents of each file in src folder as a new script and save.

OR

  1. Dowload this repo.
  2. Go to > Utilities > File > Import ( and select whatsapp.js and cleverbot.js in src folder)

OR

  1. Dowload whatsbot.zip from latest release.
  2. Go to > Utilities > Zip > Import > Select the downloaded file.

OR

  1. Go to > Utilities > URL > https://raw.githubusercontent.com/ssp5zone/whatsbot/master/src/whatsapp.js
  2. Go to > Utilities > URL > https://raw.githubusercontent.com/ssp5zone/whatsbot/master/src/cleverbot.js

Thats it!! Login to https://web.whatsapp.com and your chats would now be intercepted by the bots. (Refresh the page if already open.)

Note: To start a new seesion refresh the page. Doing so would create all bots again. However, the old tabs that were opened earlier would still be open!

Settings

(Optional) You can Blacklist or Whitelist certain contacts by adding them in src/whatsapp.js,

    /**
     * Whitelisted contacts.
     * 
     * I want to attach a bot for these contacts ONLY.
     * Default - Empty => Talk to everyone.
     */
    const whitelist = []; // You can also give a comma seperated values intead of array

    /**
     * Blacklisted contacts.
     * 
     * I DO NOT want any bot talking to these.
     * Default - Empty => Don't ignore anyone.
     */
    const blacklist = []; // You can also give a comma seperated values intead of array

To do

  1. Convert chatListener() to MutationObserver instead of poller.
  2. Add source to target bot on init - Only once.
  3. Add target load complete watcher.

Disclaimer

Use wisely.

whatsbot-auto's People

Contributors

ssp5zone avatar

Watchers

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