Page 1 of 1

Getting irc channel count.

Posted: Fri Nov 08, 2013 7:20 pm
by aceOverKings
Sometime ago, I built an app that I use that stores timestamped listener counts from shoutcast for analysis and i've always wanted to do the same with irc channel counts. Since the bot is already in the room 24/7 I love to figure out a way to get this from the bot but I can't seem to solve this.

My thought was to put a raw NAMES command in the timer and just modify my app to parse the ircbot.log but It just isn't working.

Anyone have any other ideas how I could get this done with the bot? The ultimate solution for me would be to figure out how to get current room nicks into either the channel log or the bot log on a timed basis but not show in the room. I can parse it out to get it in my db.

If anyone has any ideas, they would be appreciated.

Re: Getting irc channel count.

Posted: Fri Nov 08, 2013 7:58 pm
by Indy
Your plan will work but you would need the IRC debugging log turned on instead of ircbot.log (Log 1 in IRC/Server0).
Or I can add a Lua function for it if you'd rather have a Lua script write the info to a file or something.

Re: Getting irc channel count.

Posted: Fri Nov 08, 2013 9:31 pm
by aceOverKings
I did consider trying my hand at the Lua script. Let me try the debugging log, with the timer. I'll let you know.

And thanks again, Indy.

Re: Getting irc channel count.

Posted: Sat Nov 09, 2013 4:28 pm
by aceOverKings
Indy, quick question. What is the double at the beginning of each line. Is it the # seconds since the bot was started?

Thanks

Re: Getting irc channel count.

Posted: Sat Nov 09, 2013 6:20 pm
by Indy
It's the number of seconds since the bot started, yeah (sorry, I know that's really not too useful for your purposes).

Re: Getting irc channel count.

Posted: Sun Nov 10, 2013 12:59 pm
by aceOverKings
It's fine, thanks for the info.