Skip to content

Opeoluwa-Ogunlaja/WE-Hub-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WE-HUB bot

Code for the chatbot we're working on

Table of contents

Requirements

Before proceeding, you should install;

Built with

  • Python
  • Javacript

Set Up

Get a Sandbox

To do this, Create an account here and complete the process. After that, you go to your console > Messaging > settings > Whatsapp Sandbox Settings and follow the instructions you see there

Ngrok account

Create an Ngrok account and download the software here

JS Set-Up

Note: To do this, you should have NodeJS installed

In your Terminal

  • Navigate to the folder in your terminal;
    cd ./node-backend_bot
  • Install necessary packages by running;
    npm install

Py Set-Up

Note: To do this, you should have Python and the pipenv python package installed

In your Terminal

  • Navigate to the folder in your terminal;
    cd ./python_bot
  • If you do not have pipenv, install it by running;
    pip install pipenv
  • Install necessary packages by running;
    pipenv sync

Customisation

Individual READMEs will be provided in the individual folders

How to use

Start Ngrok

  • In the ngrok terminal, run;
    ngrok http 5000

Adding link to twilio console

Very Important

  • Copy the tunnel link gotten from the ngrok terminal Tz8X34.png

  • Update the link in your sandbox settings Tz8Fzg.png

  • Click save at the bottom of the page to save your settings* Tz8B9R.png

Run JS

In your Terminal

  • Navigate to the folder in your terminal;
    cd ./node-backend_bot
  • start the application
    npm run server

Run Python

In your Terminal

    cd ./python_bot
  • Activate the Environment
    pipenv shell
  • In the Virtual Environment, Run the program
    python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published