Permalink
Browse files
.sskj: removing all the unnecessary spaces
- Loading branch information...
Showing
with
3 additions
and
3 deletions.
-
+3
−3
scripts/servisi.coffee
|
|
@@ -145,7 +145,7 @@ module.exports = (bot) -> |
|
|
bot.fetchHTML url, ($) ->
|
|
|
if $? && $(".fran-left-content").text().indexOf("Število zadetkov") != -1
|
|
|
$(".entry-citation").remove()
|
|
|
- result = $(".results .entry .entry-content").eq(0).text()
|
|
|
+ result = $(".results .entry .entry-content").eq(0).text().replace(/\s\s+/g, "")
|
|
|
r.reply "#{result.substring(0,1024)}"
|
|
|
else
|
|
|
r.reply "Ni zadetkov"
|
|
|
@@ -159,12 +159,12 @@ module.exports = (bot) -> |
|
|
r.reply "Trenutni čas v #{data.place} je #{data.short_time}"
|
|
|
else
|
|
|
r.reply "Trenutni čas je čas za $YOLO!"
|
|
|
-
|
|
|
+
|
|
|
bot.regexp /^\.val/,
|
|
|
".val -- kaj se trenutno predvaja na Val 202",
|
|
|
(match,irc) ->
|
|
|
bot.fetchJSON "http://api.rtvslo.si/onair/val202", (data) ->
|
|
|
if data
|
|
|
irc.reply "Trenutno se predvaja: #{data.response.BroadcastMonitor.Current.artistName} - #{data.response.BroadcastMonitor.Current.titleName}"
|
|
|
else
|
|
|
- irc.reply "OMG val202 is down!"
|
|
|
+ irc.reply "OMG val202 is down!"
|
0 comments on commit
beed418