twitch_chat 0.0.2 twitch_chat: ^0.0.2 copied to clipboard
twitch_tchat allows dart and flutter apps to exploit the Twitch IRC with Emotes and Badges.
twitch_chat #
Package to connect and use the Twitch Chat by Websocket and IRC.
Features #
- ✅ Connect to chat
- ✅ Connect anonymously
- ✅ Get badges
- ✅ Get emotes
- ✅ Get BTTV, FFZ & 7TV emotes
- ✅ Ban, Timeout, Delete message
Getting started #
- Get your access token
- Use the following scopes:
Usage #
Initiate a chat
TwitchChat twitchChat = TwitchChat(
channelToJoin,
yourUsername,
accessToken,
clientId: clientId,
onConnected: () {},
onClearChat: () {},
onDeletedMessageByUserId: (String? userId) {},
onDeletedMessageByMessageId: (String? messageId) {},
onDone: () {},
onError: () {},
params: TwitchChatParameters(addFirstMessages: true),
);
Connect to the chat
twitchChat.connect();
Listen to the chat messages
twitchChat.chatStream.listen((message) {});
Listen to connection status changes
twitchChat!.isConnected.addListener(() {
if (twitchChat.isConnected.value) {
} else {
}
});
Noticable applications using this package #
- irl-link for IRL streamers