{"id":23879258,"url":"https://github.com/lezdcs/twitch_chat","last_synced_at":"2025-04-09T17:02:13.394Z","repository":{"id":170598445,"uuid":"634627752","full_name":"LezdCS/twitch_chat","owner":"LezdCS","description":"💬 Flutter Package for Twitch Chat","archived":false,"fork":false,"pushed_at":"2024-10-23T18:06:36.000Z","size":142,"stargazers_count":4,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-09T17:01:48.944Z","etag":null,"topics":["flutter","irc","irl","irllink","twitch"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/twitch_chat","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LezdCS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-30T18:32:47.000Z","updated_at":"2025-02-05T00:38:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"da560352-5d2e-4456-b7df-28aa42d62113","html_url":"https://github.com/LezdCS/twitch_chat","commit_stats":null,"previous_names":["lezdcs/twitch_chat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LezdCS%2Ftwitch_chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LezdCS%2Ftwitch_chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LezdCS%2Ftwitch_chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LezdCS%2Ftwitch_chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LezdCS","download_url":"https://codeload.github.com/LezdCS/twitch_chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074967,"owners_count":21043490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flutter","irc","irl","irllink","twitch"],"created_at":"2025-01-03T22:34:51.695Z","updated_at":"2025-04-09T17:02:13.368Z","avatar_url":"https://github.com/LezdCS.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twitch_chat\n![Pub Version (including pre-releases)](https://img.shields.io/pub/v/twitch_chat?color=%23027DFD)\n![GitHub last commit](https://img.shields.io/github/last-commit/lezdcs/twitch_chat)\n![GitHub](https://img.shields.io/github/license/lezdcs/twitch_chat?color=%236441a5)\n\nPackage to connect and use the Twitch Chat by Websocket and IRC.\n\n## Features\n\n- [x] Connect to chat\n- [x] Connect anonymously\n- [x] Get badges\n- [x] Get emotes\n- [x] Get BTTV, FFZ \u0026 7TV emotes\n- [x] Ban, Timeout, Delete message\n\n## Getting started\n\n- Get your access token\n- Use the following scopes:\n\n## Usage\n\nInitialize the chat \n\n```dart\nTwitchChat twitchChat = TwitchChat(\n  channelToJoin,\n  yourUsername,\n  accessToken,\n  clientId: clientId,\n  onConnected: () {},\n  onClearChat: () {},\n  onDeletedMessageByUserId: (String? userId) {},\n  onDeletedMessageByMessageId: (String? messageId) {},\n  onDone: () {},\n  onError: () {},\n  params: TwitchChatParameters(addFirstMessages: true),\n);\n```\n\nConnect to the chat\n```dart\ntwitchChat.connect();\n```\n\nListen to new chat messages\n```dart\ntwitchChat.chatStream.listen((message) {});\n```\n\nListen to connection status updates\n```dart\ntwitchChat!.isConnected.addListener(() {\n  if (twitchChat.isConnected.value) {\n  } else {\n  }\n});\n```\n\nSend a message\n```dart\ntwitchChat.sendMessage(message);\n```\n\nAccess emotes and badges\n```dart\n//Twitch emotes\ntwitchChat.emotes\ntwitchChat.emotesFromSets //contain all your subscriptions emotes\ntwitchChat.cheerEmotes\n\n//BTTV, 7TV, FFZ emotes (channel \u0026 global)\ntwitchChat.thirdPartEmotes\n\n//Global \u0026 channel badges\ntwitchChat.badges\n```\n\n## Noticable applications using this package\n\n- [irl-link](https://github.com/LezdCS/irl-link) for IRL streamers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flezdcs%2Ftwitch_chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flezdcs%2Ftwitch_chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flezdcs%2Ftwitch_chat/lists"}