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

by sirkrunch
Tue Feb 03, 2004 5:38 pm
Forum: Archive
Topic: editing strings
Replies: 4
Views: 1397

editing strings

Hi, i have a script that gets information from a file, but I dont want to display the last word, how can i go about cutting that last word out? like mIRC could use the $gettok() using chr 32 (space) as the ident chr there is only 2 spaces and its the last on that i want to remove, any help would be ...
by sirkrunch
Sun Sep 28, 2003 9:10 pm
Forum: Archive
Topic: stripping
Replies: 4
Views: 1395

cheers
so this would work?

Code: Select all

   set line "[gets $openf]"
   regexp {/(.*)} $line g link
that will read off the openfile and have it like
/www.blah
??

and

Code: Select all

 set x [string length[$text]
 if ($x => 3) {
is that correct??[/code]
by sirkrunch
Sun Sep 28, 2003 5:22 pm
Forum: Archive
Topic: stripping
Replies: 4
Views: 1395

stripping

how do i go about stripping text like i have a tcl that when some1 triggers it returns a result (ofcouse) but Iwant to take out some of it eg <user>!search website <bot>http://www.website.com I would like it to be <bot>www.website.com removing eveything b4 the 2nd slash and how do u use string lengt...
by sirkrunch
Thu Sep 18, 2003 6:01 pm
Forum: Archive
Topic: quick question
Replies: 2
Views: 683

quick question

i have a cmd that users can use on my bot,
but i only want it to display in 2 channels
whats the easyest way to do this?
by sirkrunch
Wed May 21, 2003 4:49 am
Forum: Archive
Topic: timestamp
Replies: 4
Views: 1673

just so for arguments i can have when the bot replys to a string it can timestamp it
<bot001>[20:49] hello
something like that
by sirkrunch
Wed May 21, 2003 4:02 am
Forum: Archive
Topic: timestamp
Replies: 4
Views: 1673

timestamp

whats the cmd to have a timestamp in the code ?
by sirkrunch
Fri Feb 14, 2003 4:18 am
Forum: Archive
Topic: splitting strings
Replies: 7
Views: 2002

splitting strings

I have this
$string /path/to/a/dir/and/file.txt

i want to split it, have one variable with the full path but no file
and another with just the fille name, how do i go about that??
by sirkrunch
Sun Feb 09, 2003 7:30 pm
Forum: Archive
Topic: file and date
Replies: 2
Views: 869

thanks :)
by sirkrunch
Sun Feb 09, 2003 5:33 pm
Forum: Archive
Topic: file and date
Replies: 2
Views: 869

file and date

Code: Select all

set datenow [clock format [clock seconds] -format %m][clock format [clock seconds] -format %d][clock format [clock seconds] -format %y]
set file_pre "perfect"
set file_end ".txt"
set file_name $file_pre$datenow$file_end
is what i'm using atm, is there a way to make it smaller?
by sirkrunch
Tue Jan 28, 2003 3:13 am
Forum: Archive
Topic: character range
Replies: 2
Views: 1259

character range

I'm trying to write a URL catcher
but when a URL has a '?' it seem to just take everything b4 the '?'
http://www.site.com/index.php?link=link1
would return
http://www.site.com/index.php
how do I go about fixing that??
by sirkrunch
Fri Jan 24, 2003 12:25 am
Forum: Archive
Topic: running files
Replies: 6
Views: 1358

oops some typos

Code: Select all

 proc runcmd { nick handle chan text } {
is what i ment
so i should use pub like

Code: Select all

bind pub - !cmd runcmd
is that correct?
by sirkrunch
Thu Jan 23, 2003 6:46 pm
Forum: Archive
Topic: running files
Replies: 6
Views: 1358

Code: Select all

bind pubm !cmd - runcmd
proc runcmd { nick uhost handle text dest } { 
set blah { /home/usr/prog/prog prog.cfg } 
set output [exec $blah] 
putserv "PRIVMSG $chan :$output 
}
is that looking a bit better?
by sirkrunch
Thu Jan 23, 2003 11:16 am
Forum: Archive
Topic: running files
Replies: 6
Views: 1358

this is what I have atm

Code: Select all

bind !cmd - runcmd
proc runcmd { nick uhost handle text dest } {
set blah { /home/usr/prog/prog prog.cfg }
set output [exec $blah]
putserv "PRIVMSG $chan :$output
}
am I on the right track??
by sirkrunch
Thu Jan 23, 2003 11:00 am
Forum: Archive
Topic: running files
Replies: 6
Views: 1358

running files

i'm pretty new to tcl and i want to write a script to run a file
what commands and how do I go about it?
by sirkrunch
Thu Dec 12, 2002 8:15 am
Forum: Archive
Topic: tcl for windows
Replies: 1
Views: 953

tcl for windows

running windows eggdrop, and I would like to have a tcl script that will open a dos prompt and run a file with a command and display the output into a channel, can this be done? and how would I start at it? what commands would I be using? any help would be good :) cheers