lietu / jsis

JavaScript IRC Stats
http://jsis.name
Other
14 stars 2 forks source link

Adding new log types #32

Open Efreak opened 10 years ago

Efreak commented 10 years ago

I'm trying to add a new log type for my bot. It shouldn't be too difficult since it outputs in JSON. Is there any way you can help out? Apologies if you replied to my message on irc, I've had my bouncer misconfigured.

lietu commented 10 years ago

Sure, I can try and help. What is the specific nature of the issue you're having? Do you have a fork or something that I could look at?

Efreak commented 9 years ago

Wow. Holy crap, I completely forgot about this. I'm working on steam-chat-bot, and I'd like to add statistics for it. I'm just using winston for logging, so logs are easily parseable, in on of the following formats:

  1. individual single-user/chat logs

    info: 11:36:11 TheGameater/76561198061558148 hi

    Where TheGameater is someone's display name (not unique), and 76561198061558148 is the steamid64 (unique, I'd like to link to their steam profile, but I can do that myself if I have to).

  2. global log containing all chatter

    "time":1435091057107,"type":"left","roomId":"103582791432826618","userId":"76561198086077181","actedId":null,"displayName":"■■","actedName":null,"message":"has left chat","level":"info"}

I know I had a local modified copy of the parser somewhere, but I can't seem to find it. I haven't actually looked at this since I posted.

phixion commented 9 years ago

I'd love to see logreaders for willie https://github.com/embolalia/willie. I am totally lost. my logfiles look like: 2015-07-12T14:29:56.995597+02:00 hi there 2015-07-12T08:15:35.355646+02:00 * chatter has quit IRC 2015-07-12T08:15:40.773490+02:00 * chatter has joined #channel