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 67 matches

by Elfriede
Mon Jan 16, 2012 6:19 am
Forum: Script Requests
Topic: ping address
Replies: 3
Views: 3528

ping address

Hi everyone :) Im looking for a script, that pings a given address and replies ping time / if url is up or down / in seconds. Like: !ping 173.194.69.104 bot: ping reply 1.4s or !ping 177.777.154 bot: down / not reachable if possible a configurable timeout would be appreciated. Hope someone is willin...
by Elfriede
Fri Dec 09, 2011 6:10 am
Forum: Script Requests
Topic: on / off switch via console
Replies: 1
Views: 2078

on / off switch via console

Hi everyone :) Hopefully someone can help me on that. Ive a small script, that needs an on/off switch for a specific command. In the following example id like to have eg: .chanset !this off like this :) proc beta_recv {from command text} { set type [lindex [split $text] 0] switch $type { "!this...
by Elfriede
Sun Aug 21, 2011 11:28 am
Forum: Scripting Help
Topic: regexp slash
Replies: 2
Views: 2439

Perfect ! Exactly what i was looking for. Many, many thanks
by Elfriede
Sun Aug 21, 2011 11:00 am
Forum: Scripting Help
Topic: regexp slash
Replies: 2
Views: 2439

regexp slash

Hi everyone :)

Im afraid its quite easy, but i dont get it.

Example:

.this/is/some/text/in/here

All i need is always getting except the text after the last /
In this case -> .this/is/some/text/in

Thanks
by Elfriede
Wed Jan 26, 2011 12:39 pm
Forum: Scripting Help
Topic: Parsing from webcontent
Replies: 2
Views: 2730

http://www.imdb.com/title/tt0942385/
set real_var "$real_var|$match"
Sounds good :) Im excited to see how that proc part will look like
by Elfriede
Wed Jan 26, 2011 10:14 am
Forum: Scripting Help
Topic: Parsing from webcontent
Replies: 2
Views: 2730

Parsing from webcontent

Hi @ all :) I'd like to parse -> <a href="/genre/Action">Action</a> <span>|</span> <a href="/genre/Adventure">Adventure</a> <span>|</span> <a href="/genre/Comedy">Comedy</a> the genres, like Action/Adventure/Comedy. What i have foreach line [split $content \n] { if {[re...
by Elfriede
Sat Jan 01, 2011 5:15 am
Forum: Scripting Help
Topic: [solved] regexp
Replies: 4
Views: 4072

Perfect ! Thank you very, very much speechles - exactly how i imagined it :)
by Elfriede
Fri Dec 31, 2010 1:55 pm
Forum: Scripting Help
Topic: [solved] regexp
Replies: 4
Views: 4072

ok ill try to explain different. My bot can search in a mysql database. therefore ive coded a command !regex, which should support different switches, as easy as possible. 1. !regex search phrase - supporting wildcards like !regex %search% 2. the switches are like -a= and -s= Examples: !regex my%sea...
by Elfriede
Mon Nov 08, 2010 4:55 am
Forum: Scripting Help
Topic: [solved] regexp
Replies: 4
Views: 4072

[solved] regexp

Hi everyone :) I need some kind of advice how to do the following: I'd like to use like: !regex search phrase -a=we -s=home or !regex -a=we -s=home search phrase Therefore i need a regex or an alternative to get it like $var1 = search phrase $var2 = home $var3 = we It should work in both cases, eith...
by Elfriede
Sun Sep 19, 2010 9:52 am
Forum: Scripting Help
Topic: Run a proc delayed
Replies: 5
Views: 3743

I really appreciate ur answer and im quite sure i do "understand", but im unsure how to use that on my proc. Actually it looks like: ::http::register https 443 ::tls::socket if {![catch {set http_handle [http::geturl $the_url -binary 1 -timeout $::check(timeout)]} error]} { set http_status...
by Elfriede
Fri Sep 17, 2010 3:05 am
Forum: Scripting Help
Topic: Run a proc delayed
Replies: 5
Views: 3743

Run a proc delayed

Hi : Its me again ^^ Here's my code: } elseif {$http_status == "timeout"} { sendmsg # "\002\00304\[ERROR\]\002\003 \002Connection timed out - $the_url ... Retrying ..." set http_data [::http::data $http_handle] ::http::cleanup $http_handle set File [::mysql::escape [getPage $the_...
by Elfriede
Fri Sep 17, 2010 2:41 am
Forum: Scripting Help
Topic: How can i remove an empty line within a foreach
Replies: 5
Views: 3644

Thanks @all for the great help :)
by Elfriede
Tue Sep 14, 2010 8:31 am
Forum: Scripting Help
Topic: How can i remove an empty line within a foreach
Replies: 5
Views: 3644

How can i remove an empty line within a foreach

Hi everboy :) Im having a small issue and appreciate any help :) proc some:proc {nick host handle channel text} { set url [lindex [split $text] 0] set result [lindex $text 1] set token [::http::geturl $url] set content [::http::data $token] ::http::cleanup $token foreach line [split $content \n] { s...
by Elfriede
Mon May 31, 2010 8:07 am
Forum: Scripting Help
Topic: change line output
Replies: 2
Views: 2348

many thanks ! :)
by Elfriede
Mon May 31, 2010 7:33 am
Forum: Scripting Help
Topic: change line output
Replies: 2
Views: 2348

change line output

Hey guys :)

i have a mysql query which gives me eg as result:

{Tom 2} {Simon 67} {Phoenix 8} {Sally 12} {Richard 43}

how can i manipulate this list to look like

Tom: 2 Simon: 67 Phoenix: 8 ... ?

many thanks :)