Skip to content

Viber/sample-bot-isitup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Node.js 5.0+
  2. 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.
  3. Active bot account.
  4. 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
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).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published