All Projects → gojigeje → Wasapbot

gojigeje / Wasapbot

Licence: mit
[abandoned ❗] Simple WhatsApp bot written in PHP, respond to private & group messages. Uses Chat-API

Projects that are alternatives of or similar to Wasapbot

Me bot
Build a bot that speaks like you!
Stars: ✭ 641 (+620.22%)
Mutual labels:  bot, chatbot, whatsapp
Venom
Venom is the most complete javascript library for Whatsapp, 100% Open Source.
Stars: ✭ 3,457 (+3784.27%)
Mutual labels:  bot, chatbot, whatsapp
Magento Chatbot
Magento Chatbot Integration with Telegram, Messenger, Whatsapp, WeChat, Skype and wit.ai.
Stars: ✭ 149 (+67.42%)
Mutual labels:  bot, chatbot, whatsapp
Sulla
👩🏻‍🔬 Javascript Whatsapp api library for chatbots
Stars: ✭ 844 (+848.31%)
Mutual labels:  bot, chatbot, whatsapp
Tiledesk Dashboard
The Tiledesk dashboard. Tiledesk is an Open Source Live Chat platform written in NodeJs, firebase and Angular.
Stars: ✭ 53 (-40.45%)
Mutual labels:  bot, chatbot
Fbmessenger Node
FB messenger for node
Stars: ✭ 52 (-41.57%)
Mutual labels:  bot, chatbot
Mixer Mixitup
Streaming bot application for handling chat, events, moderation, and other streamer assistance features
Stars: ✭ 83 (-6.74%)
Mutual labels:  bot, chatbot
Everydaywechat
微信助手:1.每日定时给好友(女友)发送定制消息。2.机器人自动回复好友。3.群助手功能(例如:查询垃圾分类、天气、日历、电影实时票房、快递物流、PM2.5等)
Stars: ✭ 8,688 (+9661.8%)
Mutual labels:  bot, chatbot
Automod Bot
Fun moderation economy bot discord.js
Stars: ✭ 41 (-53.93%)
Mutual labels:  bot, chatbot
Dialogflow Angular5
💬 Bot in Angular 5 & DialogFlow
Stars: ✭ 52 (-41.57%)
Mutual labels:  bot, chatbot
Webwhatsappbot
Core to automatize whatsapp - working 11/2018
Stars: ✭ 59 (-33.71%)
Mutual labels:  bot, whatsapp
Omeglemiddleman
Lets you connect strangers to each other, and intercept messages AKA Man in the Middle Attack
Stars: ✭ 85 (-4.49%)
Mutual labels:  bot, chatbot
Rboot
Rboot 是一个Go语言开发的一个简单、高效的 Chatops bot 框架
Stars: ✭ 50 (-43.82%)
Mutual labels:  bot, chatbot
Watomatic
Auto reply app helping you move away from less private messengers like WhatsApp and soon Facebook Messenger
Stars: ✭ 83 (-6.74%)
Mutual labels:  chatbot, whatsapp
Caloriecounter
AWS Lex based chatbot that calculates calories based on different fast food restaurants. This was an entry for a coding challenge on DevPost, and is actively used on Facebook Messenger. The issues list is actively managed as what defects or improvements are found by real world usage.
Stars: ✭ 46 (-48.31%)
Mutual labels:  bot, chatbot
Wappbot
Automatic answering of incoming messages by means of javascript and using Whatsapp Web
Stars: ✭ 55 (-38.2%)
Mutual labels:  bot, whatsapp
Webbybot
chatterbot written in es6 (es2015), fork from hubot
Stars: ✭ 71 (-20.22%)
Mutual labels:  bot, chatbot
Talkify
Talkify is an open source framework with an aim to standardize and model conversational AI enabling development of personal assistants and chat bots. The mission of this framework is to make developing chat bots and personal assistants as easy as spinning up a simple website in html.
Stars: ✭ 68 (-23.6%)
Mutual labels:  bot, chatbot
Mojo Weixin
使用Perl语言(不会没关系)编写的个人账号微信/weixin/wechat客户端框架(非GUI),可通过插件提供基于HTTP协议的api接口供其他语言或系统调用
Stars: ✭ 1,181 (+1226.97%)
Mutual labels:  bot, chatbot
Botframework Webchat
A highly-customizable web-based client for Azure Bot Services.
Stars: ✭ 1,198 (+1246.07%)
Mutual labels:  bot, chatbot

wasapbot

This project is abandoned and won't be maintained anymore, sorry.


Baca dalam Bahasa Indonesia.

A very simple WhatsApp bot script built using Chat-API library. This bot will send back any private message sent to it, and it also respond to "!ping" or "!help" sent to group.

Of course you can always add new feature or new function to this bot, this script is super simple, enough to give you a clue on how Chat-API works.

wasapbot


This project is set up and tested on Ubuntu Linux system. If you're on other system or you can't find more detail on any particular information on this repo, you should always refer to Chat-API.


1. Preparations & Setup

Install dependencies needed by Chat-API (ref.)

Install dependencies using command:

 sudo apt-get update
 sudo apt-get install ffmpeg openssl php5-cli php5-gd php5-curl php5-sqlite php5-mcrypt

IMPORTANT! WhatsApp now using encryption on its message, you need to install additional PHP extensions so the script can read encrypted messages. Please follow this guide on how to install them! MUST!


Make sure that all dependencies succesfully installed. Some things you need to check is:

  • Check PHP version:
    php -v
    make sure the version is >= 5.6
 PHP 5.6.16-2+deb.sury.org~trusty+1 (cli) 
 Copyright (c) 1997-2015 The PHP Group
 ......
  • Make sure all required extension is loaded
    php -m
    these 3 extensions must be present:
..
curve25519
mcrypt
protobuf
..

If everything is OK, you can proceed to the next step.

Get WhatsApp password/token for your number

There ada some tools we can use to get WhatsApp password:

Here we will use registerTool.php (you can always use other tool, their function is same, please refer to Chat-API).

  1. Prepare any mobile number, it's advised to use a new number which has never been used on WhatsApp before, otherwise it may cause some problem. Make sure the number is able to receive sms or voice call to receive registration code from WhatsApp
  2. Download this repo, then extract it
  3. Go to whatsapp/examples/ folder and run registerTool.php from your terminal or CLI:
    cd whatsapp/examples/
    php registerTool.php
  4. Input your bot's mobile number (country code prefixed, without plus sign '+')
    e.g. 6285xxxxxxxxx
  5. There will be option to choose verification method, 'sms' or 'voice', select one
  6. Wait for the code
  7. Input the code, in XXX-XXX format
  8. We got the password!
    usually with this format: gojigejeB79ONvyUV87TtBIP8v7=

If registration was unsuccessful, please examine the command's output then refer to Chat-API Issues to find for the cause and how to deal with it.

2. Running The Bot

If you've got the password, then the next step is to run the wasapbot.php script.

  1. Change the $username, $password, and $nickname according to your bot details.
  2. Run via CLI:
    php wasapbot.php
    wait until it says 'BOT SIAP'.
  3. Try to send message to the bot, the bot should send your message back to you. Success!

Troubleshooting

  • Comment the error_reporting(....) (row 19, wasapbot.php) so PHP will display script error, check if there's an error.
  • Change $debug variable into true so Chat-API will run in debug mode, check the debug output.

3. Change The Bot's Response

In this project, we only use 2 event as an example, onGetMessage(...) to get private message, and onGetGroupMessage(...) to get group message. You can change bot's response by editing the script inside those function. (row 126 and 182, wasapbot.php).

You can also add other event to add bot's capability, please refer to Chat-API Events for the list of available events.

Contribute

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].