is there a script that can count the time spent by a nick inside a channel ? and stop the counter when the nick leaves and resume the time-spent when the nick joins the channel again ?
Not sure if there are any suitable scripts in the tcl archive, but I wrote such a script for someone privately a couple of years back. I'll have to ask permission before I can release it publicly, assuming I can get in contact with the guy I wrote it for.
On 2002-05-01 15:26, slennox wrote:
Not sure if there are any suitable scripts in the tcl archive, but I wrote such a script for someone privately a couple of years back. I'll have to ask permission before I can release it publicly, assuming I can get in contact with the guy I wrote it for.
slennox -- that would be great -- i really needed some kind of script for such - i would really appreciate all the help.
If you guys can give some specifics about what the script should do, I can probably write it.
Things you should include are commands you want, features you want (*specific features*), whether it should be multi-channel or single channel, should it track all nicks, or just nicks you specify, or just users on the bot... stuff like that.
I sat my client on the DALnet channel the guy is in all day today (enduring copious amounts of colours and over a dozen spam and a/s/l request messages) but didn't hear a peep from him.
All I would like the script to do is monitor up to 10 different nicknames (maximum) in one channel, purely for time spent in channel. This can be written to a text file or a couple of basic commands like .timestats <nick> or .timeon <nick> or something.
Preferably, the time stats would be reset on a weekly basis with the previous week being stored as a total in a file/variable that could be called with another command to view overall. (or if you're really feeling ambitious, how about calling the stats by w/e date ;P)
Anyway, if you do get a chance to look at this it would be great.
Cheers
Ian-Highlander
"Insanity Takes Its Toll, Please Have Exact Change"
As I re-call, StormBot has those extensive statistics you were seek-ing. Perhaps you could obtain permission to isolate that part of the script for your use.
On 2002-05-02 18:32, stdragon wrote:
If you guys can give some specifics about what the script should do, I can probably write it.
Things you should include are commands you want, features you want (*specific features*), whether it should be multi-channel or single channel, should it track all nicks, or just nicks you specify, or just users on the bot... stuff like that.
i was looking for something like when a nick comes in the channel add (or make record if first time seen) the time he/she spends online and stop the online-counter when he/she leaves and append again when he/she joins back -- but i wanted the data to be recorded for the NICK and not by its hostmask ... thus, if there's NICK change it will again be a different person and a new record or if the nick change matches one that already is in the records it will append the ONLINE-TIMER to that nick instead.
-- a simple file will be fine coz im making this as a webpage using PHP. -- example data format:
-----------------------
NICK1:TIME-SPENT
NICK2:TIME-SPENT
NICK3:TIME-SPENT
-----------------------
something like that ...
thx in advance !
<font size=-1>[ This Message was edited by: tcl-idiot on 2002-05-03 17:08 ]</font>
Hello guys,
I'm looking for this script too. In my oppinion it should be able to check the nick against its mask and/or ident, the count should be made by day in minutes per nick, it should have the option to add/remove the nick in party line and channel, it should support multichannels but the stat should be show channel specific. Every user should be able to use it, to show its stat. Now the output should look like:
For one channel one nick
Nick added by Master
#channel
05-05-2002 200
05-06-2002 700
...
Total 10 days 900
For more than one channels
Nick added by Master
#channel1
The average for the last XX days is 875
#channel2
The average for the last XX days is 1200
Use channel specific for more details.
!stats <period> <channel>
For no nick given (owner only) one channel
#channel
Nick1 30 days 700
Nick2 15 days 750
For no nick given (owner only) multiple channels
#channel1
Nick1 30 days 700
#channel2
Nick1 15 days 500
Nick2 17 days 600
____________________________
The input:
- for owners/masters (of bots/channels)
!stats <nick> <period> <channels>
were:
nick - is the nick's stat. If no nick are given it should show the total average of all nicks for the period or from start.
period - the number of days for which we request the stat like 3 mean the last 3 days. If no period is given it should show all days from start for that nick.
channels - it should be only 1 channel or all
- for nick
!stats <period> <channels>
like above except that the max period should be the last month
!statsadd <nick> <host/mask>
it should support multiple hosts/mask/ips like !statsadd Nero *!neroident@dial*.dom.com Nero!*@192.168.4.10
!statsdel <nick>
!statsprohibit on/off should let only the owner/masters use it.
Maybe other like:
!statstop10
!statslower
Well this what i remember for now, i hope this isn't to hard to make.
Ya I've started it, but I got caught up in some other stuff too, so it may take a while to get done. I'll work on it some now, thanks for remindind me!