Skip to content

Commit

Permalink
.sskj: removing all the unnecessary spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyLemon committed Feb 24, 2017
1 parent e35109e commit d4bb543
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/servisi.coffee
Expand Up @@ -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"
Expand All @@ -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 d4bb543

Please sign in to comment.