Evaluated proc song args {set q [. $args]; set json [fix_slashes [wget "http://tinysong.com/s/[urlencode $q]?format=json&key=ed73443dd986439db4842e34fb1b335c"]]; set out ""; set results [regexp -all -inline {Url":"(.+?)".+?SongName":"(.+?)".+?ArtistName":"(.+?)"} $json]; for {set i 1} {$i < [llength $results]} {incr i 4} { append out "\x02[lindex $result $i]\x02 - [lindex $result [+ $i 1]] ([lindex $result [+ $i 2]])\n" };. $out }