This is a simple NodeJS based Viber bot that replies with the text message you send it.
To use this application, you need to have the following things:
-
An Active Viber Account
Download the app here: https://www.viber.com/en/download/
-
An Active Viber Bot Account
Create one here: https://developers.viber.com
-
The Ngrok application to allow tunneling for local development
Download the application here: https://ngrok.com/download
- Clone the repository
git clone https://github.com/devaku/nodejs-viber-bot
cd nodejs-viber-bot
- Then after that, install the node_modules using the provided script
npm run install-server
-
Once the installation is done, make sure to create a .env file, from the given sample.
-
To run the application locally, ngrok must be running in the background. Make sure the PORT you provide (from the .env file), is the same PORT you use when running ngrok.
ngrok http 8080
- Once everything is set up just run the following script to get the application started
npm run debug
- Open up your Viber bot application, and start a conversation to see it work :D
- This Node.js application was created by Alejo Kim Uy.
- If you're interested in working with me, you can find my details on my LinkedIn.
- If you want to see my other coding projects, you can find them on my Github.