View unanswered posts | View active topics It is currently Sat Oct 21, 2017 2:35 am



Reply to topic  [ 6 posts ] 
 Getting irc channel count. 
Author Message
Junior Member

Joined: Thu Oct 31, 2013 3:52 pm
Posts: 14
Medals: 8
RadioBot Owner (2) Feature Requester (3)
Longevity (3)
Post Getting irc channel count.
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.


Fri Nov 08, 2013 8:20 pm
Profile
Site Admin
User avatar

Joined: Thu Oct 16, 2008 1:58 pm
Posts: 448
Medals: 17
Administrator (1) Plugin Developer (1)
RadioBot Owner (1) Helper (1)
Longevity (13)
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Post Re: Getting irc channel count.
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.

_________________
You can also contact me via email or instant messenger, links are at the bottom of this post.


Fri Nov 08, 2013 8:58 pm
Profile YIM WWW
Junior Member

Joined: Thu Oct 31, 2013 3:52 pm
Posts: 14
Medals: 8
RadioBot Owner (2) Feature Requester (3)
Longevity (3)
Post Re: Getting irc channel count.
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.


Fri Nov 08, 2013 10:31 pm
Profile
Junior Member

Joined: Thu Oct 31, 2013 3:52 pm
Posts: 14
Medals: 8
RadioBot Owner (2) Feature Requester (3)
Longevity (3)
Post Re: Getting irc channel count.
Indy, quick question. What is the double at the beginning of each line. Is it the # seconds since the bot was started?

Thanks


Sat Nov 09, 2013 5:28 pm
Profile
Site Admin
User avatar

Joined: Thu Oct 16, 2008 1:58 pm
Posts: 448
Medals: 17
Administrator (1) Plugin Developer (1)
RadioBot Owner (1) Helper (1)
Longevity (13)
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Post Re: Getting irc channel count.
It's the number of seconds since the bot started, yeah (sorry, I know that's really not too useful for your purposes).

_________________
You can also contact me via email or instant messenger, links are at the bottom of this post.


Sat Nov 09, 2013 7:20 pm
Profile YIM WWW
Junior Member

Joined: Thu Oct 31, 2013 3:52 pm
Posts: 14
Medals: 8
RadioBot Owner (2) Feature Requester (3)
Longevity (3)
Post Re: Getting irc channel count.
It's fine, thanks for the info.


Sun Nov 10, 2013 1:59 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.