onAnyMessage

Reacts to the message "same" by agreeing with "same".

Uses manual matching. It is up to the function to decide whether or not it should reply.

Only literal matching is made, so matches are case-sensitive and may not be trailed by other text. Only messages whose contents are literally the characters "same" are matched. This can naturally be improved upon, but as a toy example it is kept simple.

version(WithSamePlugin && MatchByStringComparison)
private
@IRCEventHandler().onEvent(IRCEvent.Type.CHAN).permissionsRequired(Permissions.ignore).channelPolicy(ChannelPolicy.home)
void
onAnyMessage