This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 30 matches

by JKM
Sat Nov 07, 2009 4:41 pm
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

Ah, I used '"http://mysite.com/spotInfo.php" "uri" $track' and putquick. I tried '"http://mysite.com/spotInfo.php" "uri" $track' a lot of times before you wrote it, but it didn't return any message or errors.
by JKM
Sat Nov 07, 2009 4:22 pm
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

Yeah, I tried hundreds of ways, but it turned out that it was the puthelp line (I replaced it with putquick "PRIVMSG $chan :$line").

Thanks for your help! :)
by JKM
Sat Nov 07, 2009 3:12 pm
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

Oh, sorry about that.

Code: Select all

set data_lines [grab_http_data 2  http://mysite.com/spotInfo.php?uri=${track} "" ""]
returns:

[20:10] Tcl error [SpotInfo_proc]: Unsupported URL: http://mysite.com/spotify.php?uri=4SwVc ... xIiUDLc5?=
by JKM
Fri Nov 06, 2009 11:18 am
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

It seems to be an error in the regex line - I just copied that line from your code.
by JKM
Fri Nov 06, 2009 8:08 am
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

Anyone? :)
by JKM
Wed Nov 04, 2009 4:32 pm
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

[SpotInfo_proc]: wrong # args: should be "regexp ?switches? exp string ?matchVar? ?subMatchVar subMatchVar ...?"

Edit: This error comes every time someone writes something.
by JKM
Tue Nov 03, 2009 11:27 pm
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

bind pubm -|- * SpotInfo_proc package require http proc SpotInfo_proc {nick uhost hand chan arg} { if {[regexp -nocase -- {(?:http://open\.spotify\.com/track/|spotify:track:)([[:alnum:]]{22})} $arg spotify track]} { set data_lines [grab_http_data 2 http://mysite.com/spotInfo.php?uri=${track}] } } p...
by JKM
Tue Nov 03, 2009 8:12 am
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

I gave you some examples for the url, I want to fetch the code/hash from any spotify urls and uris
http://open.spotify.com/track/*
spotify:track:*
by JKM
Tue Nov 03, 2009 7:27 am
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

http://open.spotify.com/track/75JFxkI2RXiU7L9VXzMkle http://open.spotify.com/track/3yV98lWu83L5RZZ6RKoUg9 http://open.spotify.com/track/4OSRg1faLprPCt86C80zWt http://open.spotify.com/track/3ou9rSNUQnE7XYmJkUUIOc http://open.spotify.com/track/3QkNkun3dzkeGo1jpkC76S spotify:track:75JFxkI2RXiU7L9VXzMkl...
by JKM
Tue Nov 03, 2009 5:03 am
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

Like this? proc SpotInfo_proc { nick uhost hand chan arg } { if { [regexp -all -nocase -- {http://open.spotify.com/track/(^.{22}$)} $line2 -> spotCode] } { set data_lines [grab_http_data 2 http://mysite/check?code= $spotCode] } } proc grab_http_data { type url query arg } { set user_agent "http...
by JKM
Tue Nov 03, 2009 2:07 am
Forum: Scripting Help
Topic: Find part of a word/url
Replies: 20
Views: 17811

Find part of a word/url

I want to use the 22 char long code behind http://open.spotify.com/track/ or spotify:track:. I've coded some small scripts, but that's only with commands. Now, I want to catch the code even if it's in the middle of a sentence.
by JKM
Sun Nov 01, 2009 1:04 pm
Forum: Script Requests
Topic: Getting Spotify code from url/uri
Replies: 0
Views: 1636

Getting Spotify code from url/uri

I want to get the spotify code if someone writes:
*http://open.spotify.com/track/XXXXXXXXXXXXXXXXXXXXXX*
*spotify:track:XXXXXXXXXXXXXXXXXXXXXX*
by JKM
Sun Oct 18, 2009 6:49 pm
Forum: Scripting Help
Topic: Join/changenick script
Replies: 3
Views: 2957

Thanks, but this one doesn't work either:

Code: Select all

bind join - #chan2 msg:chanjoin 
proc msg:chanjoin {nick host handle chan text} {
        putserv "PRIVMSG $chan :Hey, $nick! Welcome."
}
(Just a welcome message to everyone that joins)
by JKM
Sun Oct 18, 2009 3:24 pm
Forum: Scripting Help
Topic: Join/changenick script
Replies: 3
Views: 2957

Join/changenick script

Neither of these scripts are working, and I'm wondering what's wrong. set tagChans "#chan" bind join - {% TAG|*} voice:user bind nick - {% TAG|*} voice:user bind nick - * devoice:user bind join - #chan2 msg:chanjoin proc voice:user {nick uhost hand chan {nn ""}} { if {$nn == &quo...
by JKM
Sun Mar 15, 2009 11:25 pm
Forum: Script Support & Releases
Topic: !tv script
Replies: 2
Views: 4547

!tv script

I'm looking for a script that does this: <user>!tv some show <bot> Show Name: Some Show <bot> Latest Show: SeasonxEpisode - episode name - launch date <bot> Next Show: SeasonxEpisode - episode name - launch date I found some similar scripts in the tcl archive, but I couldn't find any scripts that's ...