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

Commit e5b4137

Browse files
committed
Add a method to get the twitch username in TwitchChatInput/Output
1 parent 3133d80 commit e5b4137

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@ default void registerChatMessageReceiveEventHandler(Consumer<TwitchChatMessageRe
4040
default void registerPrivateChatMessageReceiveEventHandler(Consumer<TwitchPrivateChatMessageReceiveEvent> eventHandler) {
4141
registerEventHandler(eventHandler, TwitchPrivateChatMessageReceiveEvent.class);
4242
}
43+
44+
/**
45+
* Returns the username of provided twitch account
46+
*
47+
* @return the twitch username of the bot
48+
*/
49+
String getUsername();
4350
}

src/main/java/org/codeoverflow/chatoverflow/api/io/output/chat/TwitchChatOutput.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,11 @@ public interface TwitchChatOutput extends ChatOutput {
1717
* @param channel name of the channel
1818
*/
1919
void setChannel(String channel);
20+
21+
/**
22+
* Returns the username of provided twitch account
23+
*
24+
* @return the twitch username of the bot
25+
*/
26+
String getUsername();
2027
}

0 commit comments

Comments
 (0)