Class PrivMsgTMIProcessor
java.lang.Object
com.gmt2001.twitch.tmi.processors.AbstractTMIProcessor
com.gmt2001.twitch.tmi.processors.PrivMsgTMIProcessor
- All Implemented Interfaces:
Flow.Subscriber<TMIMessage>
Handles the PRIVMSG IRC command and tracks moderators via IRCv3 item.tags()
- Author:
- gmt2001
-
Field Summary
Fields inherited from class com.gmt2001.twitch.tmi.processors.AbstractTMIProcessor
commands, subscription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonMessage(TMIMessage item) Called when a TMIMessage of type TMIMessageType.MESSAGE is receivedstatic voidpreventSelfTrigger(String messageid) Caches a message GUID for 10 seconds to prevent self-triggering.static StringstripAction(String message) Methods inherited from class com.gmt2001.twitch.tmi.processors.AbstractTMIProcessor
channel, onClose, onComplete, onError, onFlowComplete, onFlowError, onFlowNext, onFlowSubscribe, onNext, onOpen, onSubscribe, properties, property, session, subscribe, tmi, user
-
Constructor Details
-
PrivMsgTMIProcessor
public PrivMsgTMIProcessor()
-
-
Method Details
-
stripAction
-
preventSelfTrigger
Caches a message GUID for 10 seconds to prevent self-triggering.- Parameters:
messageid- The message GUID to cache.
-
onMessage
Description copied from class:AbstractTMIProcessorCalled when a TMIMessage of type TMIMessageType.MESSAGE is received- Specified by:
onMessagein classAbstractTMIProcessor- Parameters:
item- TheTMIMessagethat was received
-