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

by pipo
Thu Oct 11, 2007 5:00 pm
Forum: Script Requests
Topic: getting someting inside a dir
Replies: 1
Views: 1413

getting someting inside a dir

Ok i use this code to get dcc send: # dcc sends/recieves por Marco Ferra aka nXistence # http://clientes.netvisao.pt/mferra/ # marcoferra@netvisao.pt # versao 1.0 # !get <file>, !getlist # por aqui a path ate' 'a filesystem do bot set filesdir "/home/store/" bind pub - !get pub:get proc pu...
by pipo
Tue May 01, 2007 7:10 am
Forum: Scripting Help
Topic: split line
Replies: 2
Views: 3168

Works, thanks

And if the line is someting like:

blabla bla bla -example rarara -example fdfsdfs
by pipo
Tue May 01, 2007 5:29 am
Forum: Scripting Help
Topic: split line
Replies: 2
Views: 3168

split line

I need some help splitting one line into two, I have for example this line: blabla bla bla -example rarara I want the bot to announce it like this: <bot> blabla bla bla <bot> rarara so everyting before "-example" will be announced on the first line and everyting after "-example" ...
by pipo
Thu Feb 15, 2007 11:31 am
Forum: Scripting Help
Topic: filter last character
Replies: 1
Views: 2153

filter last character

I have text like:

(blablablabla)

How can I filter out the last ")"

So the text will be:

(blablablabla

Thanks
by pipo
Sat Jan 13, 2007 2:39 pm
Forum: Scripting Help
Topic: changing unxitime into datetime
Replies: 1
Views: 2238

changing unxitime into datetime

uhm dont know if this the right forum to ask this... I have stuff stored in a .txt file with unixtime format, like 1163894721 Now I have a new script that stores everyting in a mysqldb in datime format like: 2007-13-01 19:40:23 Now my question is, is it possible to change the unxitime from the .txt ...
by pipo
Sun Dec 31, 2006 9:59 pm
Forum: Scripting Help
Topic: put lindex1 and lindex2 together?
Replies: 0
Views: 2003

put lindex1 and lindex2 together?

Happy New Year!! For announcing some output of the sitebot to a second channel I use: (example if a NEW release is send) set one [lindex $nam 0] if {[string equal NEW $one]} { putserv "PRIVMSG #channel1 :$announce"} else { putserv "PRIVMSG #channel2 :$announce"} The problem is it...
by pipo
Mon Dec 25, 2006 10:37 am
Forum: Scripting Help
Topic: change echo line
Replies: 3
Views: 4034

Ok that works, thanks :) Now is it possible to echo new uploads that starts for example with VA in the announce line to a second channel? example sitebot announce: [NEW][SECTION] New Upload: releasename.group by user Gets echo-ed to #channel2 only [NEW][SECTION] New Upload: VA.releasename.group by u...
by pipo
Fri Nov 24, 2006 10:41 am
Forum: Scripting Help
Topic: convert time output
Replies: 14
Views: 8465

Solved it :D a friend told me what to do: Well it's simple if you have the time already in unixtime format... that's the code to calculate the duration: set addtime [unx2nps $timestamp] becomes set addtime [duration [expr {[unixtime] - $timestamp}]] Well if "addtime" isn't used in other li...
by pipo
Fri Nov 24, 2006 6:40 am
Forum: Scripting Help
Topic: convert time output
Replies: 14
Views: 8465

What and where does your script set as variables for month, day, year, hour minutes and seconds? That is what you need to use.
Looks like the script doesnt got such variable. Is it possible to add them to the script? And what is the code?

Thanks again
by pipo
Thu Nov 23, 2006 8:36 pm
Forum: Scripting Help
Topic: convert time output
Replies: 14
Views: 8465

[01:29] Tcl error in file 'eggdrop.conf': [01:29] can't read "mm": no such variable while executing "clock scan "$mm/$dd/$yy $hh:$mm:$ss"" invoked from within "set duetime [clock scan "$mm/$dd/$yy $hh:$mm:$ss"]" Thanks for your patience so far.
by pipo
Thu Nov 23, 2006 7:59 pm
Forum: Scripting Help
Topic: convert time output
Replies: 14
Views: 8465

I found http://forum.egghelp.org/viewtopic.php?t=12507

But I still dont get it :(

Tried few options, mm/dd/yy, day, dd monthname yy but still same error.
by pipo
Thu Nov 23, 2006 4:16 pm
Forum: Scripting Help
Topic: convert time output
Replies: 14
Views: 8465

I have change it into this this (think that id what you told) : set duetime [clock scan "mm/dd/yy hh:mm:ss"] set duration [duration [expr {[unixtime] - $duetime}]] Now when I start my bot, I get this error: [21:07] unable to convert date-time string "mm/dd/yy hh:mm:ss" while exec...
by pipo
Wed Nov 22, 2006 5:21 pm
Forum: Scripting Help
Topic: convert time output
Replies: 14
Views: 8465

convert time output

Thanks for the help in my previous topic When my script announce a requested nick it shows the time when the nick was added to the db.txt file. In the db.txt file it is saved with the unixtime. like: !search nick announce: <lastname> <frontname> was added on <addtime> Is it posible to add someting t...
by pipo
Tue Nov 21, 2006 7:37 pm
Forum: Script Requests
Topic: counting stored lines in db
Replies: 5
Views: 3536

thanks :D


My bot is running in two channels, is it possible to let the trigger work only in one channel?
by pipo
Tue Nov 21, 2006 5:33 am
Forum: Script Requests
Topic: counting stored lines in db
Replies: 5
Views: 3536

counting stored lines in db

Im looking for a little script that will count how many lines there are stored in my txt database . My db is called db.txt

someting like: !count
outputs: found ## lines in db

Thanks in advance