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

Add a method to the Twitch chat to get the username and ignore own messages #13

Merged
merged 2 commits into from
Aug 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,19 @@ default void registerChatMessageReceiveEventHandler(Consumer<TwitchChatMessageRe
default void registerPrivateChatMessageReceiveEventHandler(Consumer<TwitchPrivateChatMessageReceiveEvent> eventHandler) {
registerEventHandler(eventHandler, TwitchPrivateChatMessageReceiveEvent.class);
}

/**
* Returns the username of provided twitch account
*
* @return the twitch username of the bot
*/
String getUsername();

/**
* Sets whether the messages from the provided twitch account should be ignored or not.
* Note that this setting defaults to false.
*
* @param ignore whether the bot's own messages should be ignored
*/
void ignoreOwnMessages(boolean ignore);
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ public interface TwitchChatOutput extends ChatOutput {
* @param channel name of the channel
*/
void setChannel(String channel);

/**
* Returns the username of provided twitch account
*
* @return the twitch username of the bot
*/
String getUsername();
}