Giter VIP home page Giter VIP logo

tibot's Introduction

TiBot

The Date and Time Bot

A simple bot app which enables users to ask about the current date and time, calculate between dates, determine how many days until another date, etc.

Requirements

The app is built using Angular on the front end, Express on the back end, and API.AI's API to process and understand natural language.

You will need:

You will also need Google Maps API key, as we'll use some of their APIs to get data related to locations and timezones, specifically:

Once you've created your API.AI account go ahead and create your Agent. Then, in your created Agent, import the intents and entities used in this example.

Getting Started

You can start by cloning this repo:

git clone [email protected]:van100j/tibot.git

Create your .env file which contains your development environment, including the APIs keys, simply copy the .env.example file to .env

cp .env.example .env

and update it accordingly with your API.AI and Google Maps API keys.

Install server dependencies at the root of the directory, and start the Express app:

npm install # or yarn install
npm start # or yarn start

Install front end dependencies in the ./client directory, and start the Angular app:

cd client
npm install # or yarn install
npm start # or yarn start, or ng serve

Open http://localhost:4200/ in your browser, you should be able to see the app running.

Live Demo

Live demo is available at https://ti-bot.herokuapp.com/

You can start "talking" to the bot by typing your date and time related questions.

For example, some like the following date related ones:

  • how many days between today and New Year
  • is it the 21st of July in Korea
  • what day of the week is it today in Skopje
  • is it Friday tomorrow in Sydney
  • what date is tomorrow
  • do you know if it's July now
  • how many minutes passed since the the year 2013
  • how many days till November 23
  • now it's 2014 year right
  • I wonder which year are we in

Or, these time related:

  • it's 5 o'clock in Berlin
  • convert Moscow time in Denver
  • what time is it in Mountain View
  • find time difference Paris Tokyo

The bot also replies to small talk (I'm using API.AI built-in small talk module):

  • Hey, how are you
  • Who are you
  • Good evening
  • You are bad
  • etc...

tibot's People

Contributors

van100j avatar wilgert avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.