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.

nick online counter ...

Old posts that have not been replied to for several years.
Q
Quasimodo
Voice
Posts: 11
Joined: Mon Sep 24, 2001 8:00 pm

Post by Quasimodo »

Thx for the info stdragon and i have a question if u don't mind, is there a way to check thru a tcl script if the nick is registered (has identified) with nickserv ?


/Quasi
Q
Quasimodo
Voice
Posts: 11
Joined: Mon Sep 24, 2001 8:00 pm

Post by Quasimodo »

Hello stdragon

Any news about the script ?

/Quasi
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Hi, I've written a bit of that script. Here's what I have so far. It records how many seconds nicks/users spend on channels (all configurable) per day. It keeps today's data and the total times in memory, saving to disk every once in a while in case the bot dies. At the end of the day, it saves the data to a file based on the date and updates the 'totals' file.

It is possible to extend the script to do what you guys want, by having it read in the days in question and perform calculations on the times in the files.

Wildcard searching for users, multichannel reports, all of that can be done as well. It's just a matter of time :)

Let me know if you guys want to go ahead and see/use the script in its current form. I haven't tested it much... but I think it works :). Hey you could even help write it since you guys want so much crazy stuff.

Oh, just so you know, when it records stuff for users, it puts a * in front of the handle. So the user 'stdarg' is found by doing '!ontime *stdarg'. The nick 'stdarg' is just '!ontime stdarg'.

I think it would be useful to keep track of a 'last time seen' statistic. That way, it can purge nicks it hasn't seen in a few weeks, to keep the 'totals' file from getting humongous.
I
Ian-Highlander
Op
Posts: 165
Joined: Mon Sep 24, 2001 8:00 pm
Location: Ely, Cambridgeshire

Post by Ian-Highlander »

Hi stdarg,

Am eagerly awaiting this script and would be happy to spend any of my currently very limited spare time helping out with it in any way I can. I have a small network of two Unreal IRCd's running with 6 x 1.5.4 Eggdrops all with Sysop status (various flags) at your disposal on your request.

After the help you gave me on Xtools and Trivia2000, its the least I can do :wink:

Incidentally, if and when you have time and feel like a challenge, I'm planning to start work on the new version of Xtools shortly if you are still interested in helping out with it (ppslim, likewise)

Cheers

Ian
"Insanity Takes Its Toll, Please Have Exact Change"
h
hmelo

Post by hmelo »

stdragon,

I have one tcl that count users time on channel. There is a problem with this tcl, if the user change his nick, it doesn´t stop counting. It just stop counting if he quits normally. So, there are always absurds like users online for 1 day and the counter shows 3000 minutes. A think that a tcl like this should check even for nick changes, to avoyd people tryng to deceive the tcl.
Sometimes when there are a netsplit and the network rejoins, they can quit during the split, and it will keep counting until next normal quit of the user and even counting double when he´s again in the channel.

One other thing, it would be nice if your could monitor multiple nicks for one person. ex.: H3ld3r and Helder for the same nick shown in the counter. I don´t know how it could be done, but there is the suggestion.

by te way, your tcl monitor nicks in the user record?? or he doesn´t need to be registred in the egg ?? I think using user record is better if the tcl doesn´t trace user hosts.

sorry for my bad english :razz: i´m brazilian




<font size=-1>[ This Message was edited by: hmelo on 2002-06-22 11:35 ]</font>
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

It checks nick changes, join/parts, quits, and kicks. You don't have to worry about splits, because eggdrop will simulate a quit for them after they time out.

You can download it at http://stdarg.techmonkeys.org/egg/scripts/ontime.tcl
h
hmelo

Post by hmelo »

stdragon,

i´ve added some nicks
and left the handle list blank so it will count timer for or users on user record. That´s what i understood.

.ontime #Chan
shows my ontime spent on #Chan

and how do i list ontime for everybody, nicks and handles ??
the data is being stored fine in the archive.. i´ve tried some combinations based on the script you wrote but didn´t find the answer :razz:

[]s


<font size=-1>[ This Message was edited by: hmelo on 2002-06-22 19:01 ]</font>
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

do it like .ontime nick #chan or .ontime *handle #chan

Or in the channel, !ontime, same syntax.
A
AW

Post by AW »

nice one
i have a questions if i wanna set nicks or handles
set ontime(users) {}
should i use comma like set ontime(users) {a,b,c,d...??}

thanks
regards
aw
Q
Quasimodo
Voice
Posts: 11
Joined: Mon Sep 24, 2001 8:00 pm

Post by Quasimodo »

Hi stdragon

it doesn't seem to work for me. When i type !ontime it say "No data for Quasimodo on #Im@gine".

PS.
It start working but i would like to ask you to not keep tracks for handle, i mean i don't see the point since u can add nicks.
Instead u could add the option to have mask added to nick like Quasimodo *!Quasimodo@joke.sora.ro or *!*@joke.sora.ro or *!Quasimodo@*.sora.ro. Another thing is to have a file for nicks and another file for masks and have script checking only on join, on part is not necessarily since the timers stop. Also pls add the option to have nicks and masks added thru console or trigger (like !ontime add <nick>, !ontime add <mask>, !ontime add <nick> <mask>). This should be only for masters/owners.
/Quasi

<font size=-1>[ This Message was edited by: Quasimodo on 2002-06-23 12:02 ]</font>
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Quasimodo, think about what you're asking! You want to add nicks, with host masks, and be able to add and delete host masks from the console, and have the script match hostmasks and use the nick with the best matching hostmask. What you're describing is "users"!

If you want to watch *!*@blah.com and *!*@boo.com all on the nick quasimodo, then add a user called quasimodo and add those hosts.

That's why I have user-watching support -- so that you can have one nick match multiple hosts. There's no point duplicating eggdrop's builtin abilities.


On another note, I bet the reason you're getting that error is you have Quasimodo capitalized in the nick watch list, and probably your channel capitalized in the chan list. I probably should have mentioned it in the file -- all the nicks, handles, and channels should be lower case, or it won't match them.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Oh, I didn't see AW's post.. if you want a list, do it like this:

set ontime(users) {a b c d}

same with nicks and channels
A
AW

Post by AW »

Thank you so much, its working fine, good job dude

oh i saw this error in partyline
[00:00] Tcl error [process_todays_data]: called "process_todays_data" with too many arguments

thanks
regards
AW
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Ya I saw that when I got up this morning heh. It's already fixed, just redownload the file.
A
AW

Post by AW »

heh thank you much
sorry, i am bugging ya a lot..one more question about logs
i have tried "/home/usr/bot/ontime.." as well, n tried the default one as well "ontime"..but when i go in that dir, i don't see any thing? i must be doing something wrong

thanks for your help
regards
AW
Locked