Skip to content

kysage1/spike-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Don't forget to click ⭐️ and fork this repository


This whatsapp bot project (now) uses Wweb.js.


spike-bot out-of-the-box support on...

Need help? please create an issues


Prerequisites

Before you start, ensure that you have the following installed on your VPS or PC(as in ubuntu):

  • Node.js
  • Puppeteer
  • Chrome
  • Npm (Node Package Manager)

Installation

sudo apt-get install -y libnss3 libatk-bridge2.0-0 libx11-xcb1 libdrm2 libxcomposite1 libxcursor1 \
    libxdamage1 libxrandr2 libgbm1 libpango-1.0-0 libasound2 libatk1.0-0 libatk-bridge2.0-0 \
    libcups2 libxss1 libnss3 libgconf-2-4 libx11-xcb1 libxcb-xtest0
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb

Update Chrome

cat /etc/apt/sources.list.d/google-chrome.list

Getting Started with the Bot

  1. Clone the repository from here.
git clone https://github.com/kysage1/spike-md
  1. Open your terminal and navigate to the project directory.
  2. Run the following command to install the required dependencies:
npm install

Usage

To start the Spike, run the following command in your terminal:

node bot.js

How it Works

Spike utilizes the WhatsApp Web API to connect to a WhatsApp account. It sends and receives messages using the WhatsApp account, allowing it to provide chatbot functionalities.

When a new message is received, the bot uses the message content as an input to the GPT-3 model. The generated response from the model is then sent back as a reply to the sender.

Contributing

Contributions are welcome! If you find any bugs or want to enhance the features of the bot, feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License.