isitup-bot

1.0.2 • Public • Published

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).

Readme

Keywords

none

Package Sidebar

Install

npm i isitup-bot

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • spaha