isitup-bot
v1.0.2
Published
A bot interface to work with Viber API
Downloads
3
Readme
Sample Viber bot
A simple starting point for creating a Node.js based Viber bot. This bot allows you to test if a website is down for everyone or just you. You can download the completed bot or just follow the tutorial.
Prerequisites
- Node.js 5.0+
- An Active Viber account on a platform which supports Public Accounts/ bots (iOS/Android). This account will automatically be set as the account administrator during the account creation process.
- Active bot account.
- Account authentication token - unique account identifier used to validate your account in all API requests. Once your account is created your authentication token will appear in the account’s “edit info” screen (for admins only). Each request posted to Viber by the account will need to contain the token.
Usage
- Clone the repository
git clone https://github.com/Viber/sample-bot-isitup myviberbot
cd myviberbot
Get your account authentication token
We will deploy the bot with now CLI. To get started using
now
, install it fromnpm
npm install -g now
- Let's deploy our bot with access token . Edit the following command with your access token and run it in the cloned repository folder
now -e VIBER_PUBLIC_ACCOUNT_ACCESS_TOKEN_KEY="YOUR_PUBLIC_ACCOUNT_TOKEN"
That's it! Now your bot is deployed. Start talking with it in your Viber app. Simply navigate to your Public Account and click on the Message
button.
License
See the LICENSE file (MIT).