twitch_chat 1.0.0 copy "twitch_chat: ^1.0.0" to clipboard
twitch_chat: ^1.0.0 copied to clipboard

twitch_tchat allows dart and flutter apps to exploit the Twitch IRC with Emotes and Badges.

twitch_chat #

Pub Version (including pre-releases) GitHub last commit GitHub

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 #

Initialize the 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 new chat messages

twitchChat.chatStream.listen((message) {});

Listen to connection status updates

twitchChat!.isConnected.addListener(() {
  if (twitchChat.isConnected.value) {
  } else {
  }
});

Send a message

twitchChat.sendMessage(message);

Access emotes and badges

//Twitch emotes
twitchChat.emotes
twitchChat.emotesFromSets //contain all your subscriptions emotes
twitchChat.cheerEmotes

//BTTV, 7TV, FFZ emotes (channel & global)
twitchChat.thirdPartEmotes

//Global & channel badges
twitchChat.badges

Noticable applications using this package #

2
likes
0
pub points
51%
popularity

Publisher

verified publisherlezd.dev

twitch_tchat allows dart and flutter apps to exploit the Twitch IRC with Emotes and Badges.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, dio, faker, flutter, quiver, uuid, web_socket_channel

More

Packages that depend on twitch_chat