Skip to content

Commit 4212bcb

Browse files
authored
adding semicolons to what-time-is-it
1 parent 1e4aba1 commit 4212bcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Parsers/What time is it.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ flags:gmi
55
*/
66

77
var term = /^(?:!time )([^\s]+)/gmi.exec(current.text);
8-
var astrid = /!astrid/.test(current.text)
8+
var astrid = /!astrid/.test(current.text);
99
var tz = "";
1010
var text = "";
1111
var tza = getTimeZoneArray();
@@ -36,15 +36,15 @@ else {
3636
gd.setValue(rb.datetime.replace('T',' '));
3737
dateString = gd.getByFormat('EEEE, MMMM dd, yyyy');
3838
endText = !endText ? rb.timezone : endText;
39-
var text = 'It is currently ' + timeString + ' on ' + dateString + ' in ' + endText;
39+
text = 'It is currently ' + timeString + ' on ' + dateString + ' in ' + endText;
4040
new x_snc_slackerbot.Slacker().send_chat(current, text, false);
4141
}
4242

4343
function getTimeZoneArray(){
44-
var uri = "https://worldtimeapi.org/api/timezone/"
44+
var uri = "https://worldtimeapi.org/api/timezone/";
4545
var rm = new sn_ws.RESTMessageV2();
4646
rm.setEndpoint(uri);
4747
rm.setHttpMethod('get');
4848
response = rm.execute();
49-
return JSON.parse(response.getBody()).map(function(e){return e.toLowerCase()});
49+
return JSON.parse(response.getBody()).map(function(e){return e.toLowerCase();});
5050
}

0 commit comments

Comments
 (0)