Skip to content

espadrine/travelbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

const travelbot = require('travelbot')
travelbot({text: 'Get me from Paris to Berlin.'}, function(res) {
  console.log(res.text)
})

Relies on queread for natural language processing and travel-scrapper for data.

Interface

Hello!
 Hello, human.
Who are you?
 I give travel information across Europe.
 My understanding relies on a word graph with edges weighted by the meaning
 provided during training.
 My author is Thaddée Tyl.
How do I go from Manchester to Milano on Saturday?
 Let me see what I can find…
 1. 272.90 €
   08:30 Manchester
   10:05 London
   12:21 Paris
   16:44 Milano
You suck.
 I will improve.
(Impossible query.)
 Sorry, I do not understand what you said. Ask me: “What can you understand?”
Partial query to get a train somewhere.
 Well, where will you come from, and where will you go, Cotton-Eye Joe?

About

Bot to search for journeys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published