Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
});
```