0.1.6 • Published 10 years ago

evalbot v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
10 years ago

evalbot

Installation

npm install --save evalbot

Getting started

You need a repl.it API to use this bot, you can get a free trial here.

For usage with facebook, create a facebook app, then follow these steps configure it

For usage with slack, simply create a slack app, and add a bot user to your app. Then create a firebase app.

You also need a google API for googl URL shortener.

Facebook

Follow these steps to

const evalbot = require('evalbot')

evalbot.start('facebook', {
  access_token: FB_ACCESS_TOKEN,
  verify_token: FB_VERIFY TOKEN,
}, {
  port: PORT,
  replitApiKey: REPLIT_API_KEY,
  googleApiKey: GOOGLE_API_KEY,
})

Slack

const evalbot = require('evalbot')

evalbot.start('slack', {
  clientId: SLACK_CLIENT_ID,
  clientSecret: SLACK_CLIENT_SECRET,
  redirectUri: SLACK_OAUTH_REDIRECT_URI,
  scopes: ['bot'],
}, {
  port: PORT,
  replitApiKey: REPLIT_API_KEY,
  googleApiKey: GOOGLE_API_KEY,
}, {
  apiKey: FIREBASE_API_KEY,
  authDomain: FIREBASE_API_KEY,
  databaseURL: FIREBASE_DATABASE_URL,
  storageBucket: FIREBASE_STORAGE_BUCKET,
})

Questions, suggestions, issues, and any form of contribution welcome.

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago