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.

script that tells how long user is on the channel

Old posts that have not been replied to for several years.
Locked
d
dr_Fell
Voice
Posts: 14
Joined: Tue Jul 13, 2004 1:55 pm

script that tells how long user is on the channel

Post by dr_Fell »

or how long time ago did he joined. without mysql. I couldn't find such a script. Maybe somebody of You knows ?

thanks, Michal
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: script that tells how long user is on the channel

Post by user »

dr_Fell wrote:or how long time ago did he joined. without mysql. I couldn't find such a script.
'getchanjoin nick #chan' gives you the unixtime of the join (or 0 if the person joined before the bot)
Have you ever read "The Manual"?
d
dr_Fell
Voice
Posts: 14
Joined: Tue Jul 13, 2004 1:55 pm

Post by dr_Fell »

Thanks. It helped me but only halfly, cause I don't have enough time now to spend even a day for learning basics of TCL scripting and write such a script. But when I'll have enough time, I'll do. Although, if somebody knows about existing script that utilises this command, pls msg me. :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Hi. I'm Mr. Lazy.. can you do a script for me? :mrgreen: :o
Once the game is over, the king and the pawn go back in the same box.
d
dr_Fell
Voice
Posts: 14
Joined: Tue Jul 13, 2004 1:55 pm

Post by dr_Fell »

maybe You haven't read all what I have written :). I didn't ask anybody to write anything for me. I just asked if anyone knows EXISTING script that does what I need.

regards
Fell
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Ah, then it should be

Hi. I'm Mr. Lazy.. can you do a search for me? :mrgreen: :o
d
dr_Fell
Voice
Posts: 14
Joined: Tue Jul 13, 2004 1:55 pm

Post by dr_Fell »

I have been searching for over hour (google, http://www.tclscript.com/ etc.), and have found only script utilising mysql. I have exhausted possibilities known to me. If it's only way You know to improve Your self-confidence then go on. Again, I didn't ask anybody to do search for me. I hoped somebody KNOW name of such script. And only asked for some letters, not for anybody's time. You have productive symptoms, maybe try to meet the doctor ? :>
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

User here already posted how to do this.
But you didnt take any action to implement what he said. :mrgreen:

Use this: :wink:

Code: Select all

bind pub n "!idle" check:idle:time

proc check:idle:time {nick uhost hand chan text} {
 if {([lindex $text 0] != "") && ([onchan [lindex $text 0] $chan])} {
 putserv "PRIVMSG $chan :[lindex $text 0] has been idle for: [duration [getchanjoin [lindex $text 0] $chan]]"
 return 0
 }
}
Usage: !idle <nick>
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
d
dr_Fell
Voice
Posts: 14
Joined: Tue Jul 13, 2004 1:55 pm

Post by dr_Fell »

Thank You. I have searched forum before, but with bad keywords I think. That what have You, and user written, was very helpful and get me much closer to what I need. Now I have basic idea about place that I should begin from.
Locked