jsis icon indicating copy to clipboard operation
jsis copied to clipboard

Adding new log types

Open Efreak opened this issue 10 years ago • 3 comments

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.

Efreak avatar Nov 10 '14 01:11 Efreak

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?

lietu avatar Nov 10 '14 23:11 lietu

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.

Efreak avatar Jun 25 '15 10:06 Efreak

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

phixion avatar Jul 12 '15 17:07 phixion