Skip to content

Commit

Permalink
Added some basic text formatting to the weather checker
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnoisytiger committed Jan 1, 2017
1 parent 159e9f9 commit 1bd53d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/api_extensions/weather.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ function extension_weather($intentObject, $listNumber) {

case "temperature":
$temp = round($full_weather->list[0]->main->temp);
return "The current temperature in $weather_location is $temp degrees.";
return "The current temperature in _" . $weather_location . "_ is $temp degrees.";
break;

case "pressure":
$pressure = $full_weather->list[0]->main->pressure;
return "The current pressure in $weather_location is $pressure.";
return "The current pressure in _" . $weather_location . "_ is $pressure.";
break;

case "conditions":
$conditions = $full_weather->list[0]->weather[0]->id;
return language_weather_conditions( $conditions ) . " in " . $weather_location . ".";
return language_weather_conditions( $conditions ) . " in _" . $weather_location . "_.";
break;

default:
Expand Down

0 comments on commit 1bd53d5

Please sign in to comment.