Skip to content

Instantly share code, notes, and snippets.

@dpaola2
Created March 17, 2014 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpaola2/9609315 to your computer and use it in GitHub Desktop.
Save dpaola2/9609315 to your computer and use it in GitHub Desktop.
jarvis plugin
function WeatherService($http) {
this.name = "WeatherService";
this.responds_to = ["current_weather"];
this.send = function(intent) {
if (intent == "current_weather") {
return "cloudy with a chance of rain";
} else {
return "I don't understand";
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment