gempir / go-twitch-irc

go irc client for twitch.tv
MIT License
357 stars 59 forks source link

Added First Message support to Twitch user messages. #168

Closed Cidan closed 3 years ago

Cidan commented 3 years ago

Twitch now sends to moderators and stream owners a new tag with all chat messages, "first-msg=N" where N is 0 or 1. If it's 1, this is the first time this user chatted on the target user's stream. This CL adds support for parsing that tag, and adds a new boolean to the private message struct called FirstMessage to reflect this status.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.009%) to 97.92% when pulling caf8c4a846f2dd2257be45c47ca18cb6d0f3c4d8 on Cidan:master into b173bfca87681979eca791b37aacba5f931428dd on gempir:master.

Cidan commented 3 years ago

Updated tests to be TDD and cleaned up the first message check. PTAL.

gempir commented 3 years ago

Thank you for the contribution! I dig the table test