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.
Getting irc channel count.
Author
Message
- aceOverKings
- Offline
- Junior Member
- Posts: 14
- Joined: Thu Oct 31, 2013 3:52 pm
- Indy
- Offline
- Site Admin
- Posts: 465
- Joined: Thu Oct 16, 2008 1:58 pm
- IRCBot Version I Use: v5
- IRCBot Platform: Linux/Ubuntu
- Contact:
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.
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.
- aceOverKings
- Offline
- Junior Member
- Posts: 14
- Joined: Thu Oct 31, 2013 3:52 pm
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.
And thanks again, Indy.
- aceOverKings
- Offline
- Junior Member
- Posts: 14
- Joined: Thu Oct 31, 2013 3:52 pm
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
Thanks
- Indy
- Offline
- Site Admin
- Posts: 465
- Joined: Thu Oct 16, 2008 1:58 pm
- IRCBot Version I Use: v5
- IRCBot Platform: Linux/Ubuntu
- Contact:
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.
- aceOverKings
- Offline
- Junior Member
- Posts: 14
- Joined: Thu Oct 31, 2013 3:52 pm
Re: Getting irc channel count.
It's fine, thanks for the info.