Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sammers21/twitch-chat-client
High performance, netty-based, Twitch IRC chat client
https://github.com/sammers21/twitch-chat-client
api chat java read twitch
Last synced: about 1 month ago
JSON representation
High performance, netty-based, Twitch IRC chat client
- Host: GitHub
- URL: https://github.com/sammers21/twitch-chat-client
- Owner: Sammers21
- License: apache-2.0
- Created: 2019-08-02T14:18:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-03T10:27:18.000Z (over 5 years ago)
- Last Synced: 2024-11-01T03:42:10.473Z (3 months ago)
- Topics: api, chat, java, read, twitch
- Language: Java
- Homepage:
- Size: 60.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twitch-chat-client
This library can be used for reading messages from a twitch chat.
Usage:
1. Obtain token on https://twitchapps.com/tmi/
2. Code:
```java
TwitchChatClient twitchChatClient = new TwitchChatClient(token, "mytwitchnick");
twitchChatClient.start();
twitchChatClient.joinChannel("ninja");
twitchChatClient.joinChannel("shroud");
twitchChatClient.messageHandler(message -> {
String text = message.getText();
Instant receivedAt = message.getReceivedAt();
String chanName = message.getChanName();
String author = message.getAuthor();
// do whatever you whant
});
```