Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 703cb61

Browse files
committed
Add a method to the TwitchChatInput to ignore messages from the same account
1 parent e5b4137 commit 703cb61

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/org/codeoverflow/chatoverflow/api/io/input/chat/TwitchChatInput.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,12 @@ default void registerPrivateChatMessageReceiveEventHandler(Consumer<TwitchPrivat
4747
* @return the twitch username of the bot
4848
*/
4949
String getUsername();
50+
51+
/**
52+
* Sets whether the messages from the provided twitch account should be ignored or not.
53+
* Note that this setting defaults to false.
54+
*
55+
* @param ignore whether the bot's own messages should be ignored
56+
*/
57+
void ignoreOwnMessages(boolean ignore);
5058
}

0 commit comments

Comments
 (0)