This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
src/main/java/org/codeoverflow/chatoverflow/api/io Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -40,4 +40,19 @@ default void registerChatMessageReceiveEventHandler(Consumer<TwitchChatMessageRe
40
40
default void registerPrivateChatMessageReceiveEventHandler (Consumer <TwitchPrivateChatMessageReceiveEvent > eventHandler ) {
41
41
registerEventHandler (eventHandler , TwitchPrivateChatMessageReceiveEvent .class );
42
42
}
43
+
44
+ /**
45
+ * Returns the username of provided twitch account
46
+ *
47
+ * @return the twitch username of the bot
48
+ */
49
+ 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 );
43
58
}
Original file line number Diff line number Diff line change @@ -17,4 +17,11 @@ public interface TwitchChatOutput extends ChatOutput {
17
17
* @param channel name of the channel
18
18
*/
19
19
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 ();
20
27
}
You can’t perform that action at this time.
0 commit comments