JeanM1996 / trivia-bot

A simple trivia bot using the IBM Watson Conversatio API and the OpenTrivia Database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TriviaBot

A simple conversation bot that can quiz users on a variety of topics.

https://watson-trivia-bot.herokuapp.com/

Powered by

Local development

  • Install Ruby dependencies: $ bundle install
  • Install JS dependencies: $ yarn
  • Fire up a dev server: $ yarn dev
  • Visit http://localhost:8080 in your browser

(Refer to the React + Sinatra example repo for more details on what is happening behind the scenes)

Watson config

You'll need to set environment variables in the .env file with your Watson Conversation credentials.

CONVERSATION_USERNAME
CONVERSATION_PASSWORD
CONVERSATION_WORKSPACE_ID
CONVERSATION_BASE_URI

PRODUCTION BUILD

  • run $ yarn build
  • run ruby lib/app.rb (We're using Puma by default)

About

A simple trivia bot using the IBM Watson Conversatio API and the OpenTrivia Database


Languages

Language:Ruby 46.6%Language:JavaScript 40.0%Language:CSS 12.6%Language:HTML 0.8%