This is a Viber bot project that deals with Covid19 releated questions.
For development, you will only need Node.js and a node global package installed in your environement.
Just go on official Node.js website and download the installer.
Also, be sure to have git
available in your PATH, npm
might need it (You can find git here).
If the installation was successful, you should be able to run the following command.
$ node --version
v14.16.0
$ npm --version
6.14.11
If you need to update npm
, you can make it using npm
! Cool right? After running the following command, just open again the command line and be happy.
$ npm install npm -g
$ git clone https://github.com/DimitriosGkegkas/ViberBot-Covid19.git
$ cd ViberBot-Covid19
$ npm install
$ npm install ngrok -g --save
Run
$ ngrok http 3000
You should be getting something like this
Just copy the mapped https url and paste it in "./secret/url.ts" Do not close this terminal.
In a new terminal Run
$ npm start
And now you should be able to talk with the chat bot. Just scan the QR Code below if you are using my Viber Chat Bot Account
or just change the viber token to one of yours, in the file "./secret/viber.ts.".
If you want, you can create one here