FIFA World Cup Scores Quick Lookup

By Jethro on Jun 14, 2010

This is a forum request. I figured I'd post it as a snippet for those who find it useful.

Update - 6/28/12 - I've reworked the broken script and removed unneeded aliases, made it dynamic, added a check to make sure this script can't be tampered with.

on *:exit: if ($isfile(wc)) .remove wc
on *:text:$($iif(!wc == $strip($1),$1)):*:{
  var %cp = $iif(#,#,$nick)
  if ($exists(wc)) { write -c wc }
  var %wc = $+(wc,$r(1,$ticks),#,$network)
  if ($sock(%wc)) { sockclose $v1 }
  sockopen %wc feeds.feedburner.com 80
  sockmark %wc %cp $nick
}
on *:sockopen:wc*:{
  if (!$sockerr) {
    var %wc sockwrite -nt $sockname
    %wc GET /rsslivescores/euro2012po?format=xml HTTP/1.1
    %wc Host: $+($sock($sockname).addr,$str($crlf,2))
    %wc Connection: close
  }
}
on *:sockread:wc*:{ 
  if (!$sockerr) {
    sockread -nf &wc
    if ($regex($bvar(&wc, 1-).text,$&
      /\.aspx<\/feedburner:origLink><\/item><item><title>(.*)/)) {
      write wc $regsubex($regml(1),/<\/title><description>/g,$&
        $+($chr(32),->,$chr(32)))
    }
  }
}
on *:sockclose:wc*:{ 
  tokenize 32 $sorttok($regsubex($str(.,$lines(wc)),/./g,$chr(32) \n),32,rn)
  var %chan = $gettok($sock($sockname).mark,1,32)
  if (!$play(%chan)) { scon -r .play $!+(-l, $* ) %chan wc 2000 | halt }
  .notice $gettok($sock($sockname).mark,2,32) Please wait until I've finished my task.
}

Comments

Sign in to comment.
RIcko   -  Jun 29, 2012

ow i see, its ok, the script is working again and that's the most important thing now :P

 Respond  
Jethro   -  Jun 29, 2012

I have no control over the news. This script is to fetch the info from their feeds when available and updated.

 Respond  
RIcko   -  Jun 29, 2012

yeah its working again, but the news are abit from yesterday :P

thanks for updating the script though


(Jun-Fri-29)(12:39:56:pm) <07&Ricko> !Soccernews
(Jun-Fri-29)(12:39:58:pm) 03@Pyro Gathering info this may take awhile...
(Jun-Fri-29)(12:40:20:pm) 03@Pyro Germany vs. Italy has started -> The game has started
(Jun-Fri-29)(12:40:22:pm) 03@Pyro Germany vs. Italy Live score 0 - 1 -> Goal! Ma
(Jun-Fri-29)(12:40:24:pm) 03@Pyro Germany vs. Italy Live score 0 - 2 -> Goal! Mario Balotelli scores for Italy. Time: 35'


 Respond  
Jethro   -  Jun 28, 2012

A minor edit to rectify redundancy I made.

 Respond  
Jethro   -  Jun 28, 2012

I've redone the script, and it's back to work as it should. See to it at your earliest convenience.

 Respond  
RIcko   -  Jun 28, 2012

is it updated now?

 Respond  
Jethro   -  Jun 25, 2012

Yes, this script is broken as of now. Time for a fix and update.

 Respond  
RIcko   -  Jun 25, 2012

Another great and useful snippet, i guess it was working fine before but its resulting in this now:


(Jun-Mon-25)(10:45:25:pm) <~Ricko> !wc
(Jun-Mon-25)(10:45:29:pm) @Pig .
(Jun-Mon-25)(10:45:31:pm) <~Ricko> !wc
(Jun-Mon-25)(10:45:35:pm) @Pig .
(Jun-Mon-25)(10:45:36:pm) <~Ricko> !wc
(Jun-Mon-25)(10:45:40:pm) @Pig .


might be the site

 Respond  
Annaiidziithaa   -  Jul 22, 2011

@Jethro_ ok, is that cost me a little understand English, if I understood now, tomorrow I make the request in the forum and show the page that I want to get me out the information, and apologizes for not having understood what they said.

 Respond  
Jethro   -  Jul 22, 2011

You didn't read my message through. All requests should be made at Hawkee forum, not here under my snippet thread. The forum can be located at:

http://www.hawkee.com/phpBB2/viewforum.php?f=9

I'm not obligated to take your request. This project may require more time and coding. I may or may not write a script for you.

P.S. I have no clue of the Spanish football league. You didn't provide a link to which the info is provided and for people to refer to.

 Respond  
Annaiidziithaa   -  Jul 22, 2011

@Jethro_ , I would like to have it in September, thanks for answering sky

 Respond  
Annaiidziithaa   -  Jul 22, 2011

yes :P

 Respond  
Jethro   -  Jul 22, 2011

Annaiidziithaa, may I invite you to post your request at the forum?

 Respond  
Annaiidziithaa   -  Jul 22, 2011

Hello Jethro_, you could make one for the professional football league in Spain? The league here in Spain starts in September, I would like to display live information on .... goals, cards, player changes, injured players, begins, ends .. etc. .. and everything you can while the day is underway, if possible ... to collect information from both 1 st and 2 nd division

 Respond  
Jethro   -  Jul 07, 2010

It's working for me, and I'm using v6.35. :|

 Respond  
Raicho Ichisada   -  Jul 07, 2010

nope, i use mIRC v6.34

 Respond  
Jethro   -  Jul 07, 2010

Raicho, are you using the latest version of mIRC?

 Respond  
Raicho Ichisada   -  Jul 07, 2010

not work :s

 Respond  
Jethro   -  Jul 04, 2010

ATTENTION: I have updated the script once again. Please try it and tell me what you think of it. This update should work better than the previous ones.

Xpl0reR, I don't know what sort of script you are running when you get an output, and I quote, > [Evaluating] $exists(wc2.txt) [Result] $true so the rest of them.

 Respond  
xplo   -  Jul 04, 2010

i don't know the usage of sockets, so i can't fix it..

 Respond  
xplo   -  Jul 04, 2010

something must be broken in this script. since the day it got public, i tried and tried, but never were able to get a result..

[12:04:29] <@xplo> !wc
[12:04:29] <@Ubot> Processing Request, please hold...
[12:04:54] <@xplo> !wc
[12:04:54] <@Ubot>
Processing Request, please hold...
[12:05:19] <@xplo> .x eval $exists(wc2.txt)
[12:05:19] <@Ubot> [Evaluating] $exists(wc2.txt) [Result] $true
[12:05:26] <@xplo> .x eval $lines(wc2.txt)
[12:05:26] <@Ubot> [Evaluating] $lines(wc2.txt) [Result] 1
[12:05:29] <@xplo> ..
[12:05:36] <@xplo> !wc
[12:05:36] <@Ubot> *** Processing Request, please hold...

 Respond  
Jonesy44   -  Jun 28, 2010

I was only joking Jethro, they're shit, out of the world cup & I'm welsh. Football sucks?:P

 Respond  
dven88   -  Jun 27, 2010

Awsome man thanks alot again ! :)

ill modify it so it will show GOAL: ( at the time someone scores ) without using the !wc command. ill get the update to you aswell. gonna make it look like

[05:43:28] <&mBOT> Goal: Javier Hernández scores for Mexico. Time: 71' currently its ARG -MEX 3 - 1

 Respond  
Jethro   -  Jun 27, 2010

Yes jonesy44, you could manipulate the ouput, but that is deception. :P Besides, you can't change the fact that England is falling behind...lol

 Respond  
Jonesy44   -  Jun 27, 2010

Can you modify it so that England didn't seem so shit?

 Respond  
dven88   -  Jun 27, 2010

lol dont u have it just for me ?
dont modify it all again just for me man ! if u have it in a backup somewhere ! then yes i'd like to have it !

thanks tho

 Respond  
Jethro   -  Jun 27, 2010

I originally had the script made to report goals, something like this: > Goal! Thomas Müller scores for Germany. Time: 67' but some people don't like all the extra info, so I removed that feature. I could modify it again to include it. I'll keep you posted when I do.

 Respond  
Jethro   -  Jun 25, 2010

Thank you, Raicho Ichisada.

 Respond  
Raicho Ichisada   -  Jun 25, 2010

cool, nice work

 Respond  
RaZ   -  Jun 19, 2010

soo niceee work ty Jethro_ bro

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.