I very often see Twitch convert accidental periods directly between two words into a link. For example, Twitch would automatically convert “this.example” into a link in chat.
.example is not a valid TLD.
I also very often see bots are set to automatically purge or time out users that post links in Twitch chat, even if the link cannot possibly be valid.
To alleviate this, PhantomBot should check links generated by Twitch against Mozilla’s Public Suffix List (https://publicsuffix.org/list/public_suffix_list.dat) and not purge or time out any user that posts something that is converted into a link by Twitch but where the suffix does not match anything in this list.
Conversely, if an apparent link is posted in Twitch chat and the domain suffix in the link does match something in this list and the user has chosen to have the bot automatically moderate links, the bot should take action.