Class PrivMsgTMIProcessor

java.lang.Object
com.gmt2001.twitch.tmi.processors.AbstractTMIProcessor
com.gmt2001.twitch.tmi.processors.PrivMsgTMIProcessor
All Implemented Interfaces:
Flow.Subscriber<TMIMessage>

public final class PrivMsgTMIProcessor extends AbstractTMIProcessor
Handles the PRIVMSG IRC command and tracks moderators via IRCv3 item.tags()
Author:
gmt2001
  • Constructor Details

    • PrivMsgTMIProcessor

      public PrivMsgTMIProcessor()
  • Method Details

    • stripAction

      public static String stripAction(String message)
    • preventSelfTrigger

      public static void preventSelfTrigger(String messageid)
      Caches a message GUID for 10 seconds to prevent self-triggering.
      Parameters:
      messageid - The message GUID to cache.
    • onMessage

      protected void onMessage(TMIMessage item)
      Description copied from class: AbstractTMIProcessor
      Called when a TMIMessage of type TMIMessageType.MESSAGE is received
      Specified by:
      onMessage in class AbstractTMIProcessor
      Parameters:
      item - The TMIMessage that was received