From what I can tell, these are unix timestamps in milliseconds. sent-ts is equivalent to Sat, 18 Jul 2015 20:08:40 GMT and tmi-sent-ts is basically the same thing but off by a few milliseconds. I suppose this can be useful for checking ping but I’ve no clue why TMI would be sending these.
Also, I don’t know what language you’re using for your bot if that’s what you’re even making, but this is what I use for BotOnFire to parse that metadata and turn it into a JavaScript object. Sorry for the mess as it’s compiled CoffeeScript
That code is missing handling for escaped characters, such as space, in tag values. Empty display-name tag is expected and documented. (As Barry already said, it’ll be empty when the user has never set it, like the color tag.)
I was only using that code to grab sub/turbo/user-type status’ so I never worried or encountered any escaping issues, but I’ll take that into consideration.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
I’m poking fun of the fact that you took a lot of time to paste your copyright over a 15 line code snippet, even coloring it red in an image for extra importance. Is your 15 lines of code even worth that copyright? Would you be the guy who adds his copyright to a single line var a = b;? Generally people copyright an entire project, or at least a somewhat larger and unique script. You could probably look at my script and see enough similarities to wonder why you’d bother copyrighting yours. There’s only so many ways to code something as specific as splitting a string into an key value object.
We’re trying to help people here, you’re right. That’s why I posted a better solution with no strings attached.
I’m poking fun of the fact that you took a lot of time to paste your copyright over a 15 line code snippet, even coloring it red in an image for extra importance.
The red is a result of using Greenshot to add the text - it’s the default color and styling.
As for the copyright, CC BY 4.0 just asks that you attribute for the code and don’t claim it as your own. A quick google search would’ve yielded that.
Would you be the guy who adds his copyright to a single line var a = b;?
No, and assuming that about someone is quite irrational.
We’re trying to help people here, you’re right. That’s why I posted a better solution with no strings attached.
So then don’t prefix your solution with a snarky comment, rather, “Here’s my solution that takes into account x, y, and z and this is why it’s better.” It’s not hard to have a civil discussion.