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.

Channel Statistics (plz!!)

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
O
ORATEGOD
Halfop
Posts: 42
Joined: Mon Jun 08, 2020 5:50 pm

Channel Statistics (plz!!)

Post by ORATEGOD »

Greetings friends, there is a tcl that does this routine for example, Every 2 Hours.

I have seen it in an mIRC Bot, Thank you in advance for your responses.

Sorry my bad english

* <+TheBot> == Channel Statistics #Channel ==
* <+TheBot> -----------------------------------
* <+TheBot> Owner - (1/258) - (0.12%)
* <+TheBot> Ops - (2/258) - (0.78%)
* <+TheBot> Halfop - (162/258) - (%62.79%)
* <+TheBot> Voice - (94/258) - (%36.43%)
* <+TheBot> Total - (258\258) (100%)
* <+TheBot> -----------------------------------
Last edited by ORATEGOD on Thu Aug 18, 2022 3:57 pm, edited 2 times in total.
w
willyw
Revered One
Posts: 1205
Joined: Thu Jan 15, 2009 12:55 am

Re: Channel Statistics (plz!!)

Post by willyw »

I can't directly answer your question. But, while you wait to see if anybody else can, perhaps you'd like to check out:

http://tclarchive.org/search.php?str=ch ... =0&sub.y=0

and/or do some other searching there, too.

Just to see if there is anything there that will do what you want.

Best of luck with it.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
O
ORATEGOD
Halfop
Posts: 42
Joined: Mon Jun 08, 2020 5:50 pm

Re: Channel Statistics (plz!!)

Post by ORATEGOD »

Thank you very much for the information.
w
willyw
Revered One
Posts: 1205
Joined: Thu Jan 15, 2009 12:55 am

Re: Channel Statistics (plz!!)

Post by willyw »

You're welcome. :)

Something else has come to mind. This too, does not directly fill your request.
But, if you are interested in channel stats, then there is a possibility that you will find this interesting.

First, visit:
https://www.kreativrauschen.com/stats.mod/

I think that's where this module originated. There is a description there.
This module has been around for a while.

At some point in time - I think it was when version 1.8 of Eggdrop came out - this module (and apparently, others too) had problems.

They worked on them.

Here is where they made the fixed versions available.
Visit:
https://ftp.eggheads.org/pub/eggdrop/modules/1.8/
You can see stats.mod.1.3.3-pseudo.tar.gz there.

I haven't installed it myself in a while. But I have used stats.mod.1.3.3-pseudo.tar.gz on Eggdrop version 1.8x bots and it works.
I have not tried it on 1.9x yet.

( I also see: https://ftp.eggheads.org/pub/eggdrop/modules/ there now.
That's new to me. I don't know what is in the 1.9/ dir. )

This is a module, not a script. Means that you don't simply load it with a source line in eggdrop.conf. ( You do load some of its config that way though) You unarchive the file in the correct place (follow the directions) and then re-compile eggdrop and re-install. It takes longer to read the directions than it does to actually do it. :)

Once you have it up and working properly, you can issue public commands in a channel, and it will have the bot respond. Stats, etc.
And! ... :) ... it can respond to a web browser! You can tell people the url:portnumber to put into their browser and the bot will make a stats page, on-the-fly , live ! :) Tons of stats info can be viewed, just by clicking around.

I think you said something about a timed announcement of stats? Perhaps instead, you could have your bot do a timed announcement of the
url:portnumber to visit ?
Just a thought ...


Good luck with your endeavors.
:)
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
w
willyw
Revered One
Posts: 1205
Joined: Thu Jan 15, 2009 12:55 am

Re: Channel Statistics (plz!!)

Post by willyw »

Another thought:

Check out:
http://pisg.sourceforge.net/


PISG can examine the bot's log, and make a NICE looking webpage.
Stats, etc.

I used to have it run by crontab.
Then, I'd have the bot do a timed annoucement with the url to visit, to view it.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
User avatar
CrazyCat
Revered One
Posts: 1306
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Re: Channel Statistics (plz!!)

Post by CrazyCat »

willyw wrote:Another thought:

Check out:
http://pisg.sourceforge.net/


PISG can examine the bot's log, and make a NICE looking webpage.
Stats, etc.

I used to have it run by crontab.
Then, I'd have the bot do a timed annoucement with the url to visit, to view it.
With pisg, you can also export stats in raw mode http://pisg.sourceforge.net/documentation#StatsDump
This option is intended for debugging pisg, but might be useful to process the parsed logs with another program. The file contains the %stats and %lines hashes in perl's Data::Dumper format.
BTW, I also did a little logger (statirc) but it doesn't log modes (voice, halfop, op)
Post Reply