{"id":13503036,"url":"https://github.com/museun/twitchchat","last_synced_at":"2025-03-29T13:30:38.031Z","repository":{"id":45467474,"uuid":"173617178","full_name":"museun/twitchchat","owner":"museun","description":"interface to the irc portion of Twitch's chat","archived":false,"fork":false,"pushed_at":"2022-12-03T05:59:33.000Z","size":1299,"stargazers_count":104,"open_issues_count":19,"forks_count":23,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-28T10:28:50.999Z","etag":null,"topics":["async","async-std","irc","smol","tokio","twitch"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/museun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-03T19:01:05.000Z","updated_at":"2025-01-21T19:02:39.000Z","dependencies_parsed_at":"2023-01-22T20:30:44.830Z","dependency_job_id":null,"html_url":"https://github.com/museun/twitchchat","commit_stats":null,"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/museun%2Ftwitchchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/museun%2Ftwitchchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/museun%2Ftwitchchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/museun%2Ftwitchchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/museun","download_url":"https://codeload.github.com/museun/twitchchat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246190181,"owners_count":20737987,"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":["async","async-std","irc","smol","tokio","twitch"],"created_at":"2024-07-31T22:02:34.393Z","updated_at":"2025-03-29T13:30:37.688Z","avatar_url":"https://github.com/museun.png","language":"Rust","readme":"# twitchchat\n\n[![Documentation][docs_badge]][docs]\n[![Crates][crates_badge]][crates]\n[![Actions][actions_badge]][actions]\n\nThis crate provides a way to interact with [Twitch]'s chat.\n\nAlong with parse messages as Rust types, it provides methods for sending messages.\n\nIt also provides an 'event' loop which you can use to make a bot.\n\n## Opt-in features\n\nBy default, this crate depends on zero external crates -- but it makes it rather limited in scope. It can just parse/decode/encode to standard trait types (`std::io::{Read, Write}`).\n\nTo use the `AsyncRunner` (an async-event loop) you must able the `async` feature.\n\n**_NOTE_** This is a breaking change from `0.12` which had the async stuff enabled by default.\n\n```toml\ntwitchchat = { version = \"0.14\", features = [\"async\"] }\n```\n\nTo use a specific `TcpStream`/`TlStream` refer to the runtime table below.\n\n## Serde support\n\nTo enable serde support, simply enable the optional `serde` feature\n\n## Runtime\n\nThis crate is runtime agonostic. To use..\n\n| Read/Write provider                                        | Features                 |\n| ---------------------------------------------------------- | ------------------------ |\n| [`async_io`](https://docs.rs/async-io/latest/async_io/)    | `async-io`               |\n| [`smol`](https://docs.rs/smol/latest/smol/)                | `smol`                   |\n| [`async_std`](https://docs.rs/async-std/latest/async_std/) | `async-std`              |\n| [`tokio`](https://docs.rs/tokio/0.2/tokio/)                | `tokio` and `tokio-util` |\n\n### TLS\n\nIf you want TLS supports, enable the above runtime and also enable the cooresponding features:\n\n| Read/Write provider                                        | Runtime     | Features                                             | TLS backend                |\n| ---------------------------------------------------------- | ----------- | ---------------------------------------------------- | -------------------------- |\n| [`async_io`](https://docs.rs/async-io/latest/async_io/)    | `async_io`  | `\"async-tls\"`                                        | [`rustls`][rustls]         |\n| [`smol`](https://docs.rs/smol/latest/smol/)                | `smol`      | `\"async-tls\"`                                        | [`rustls`][rustls]         |\n| [`async_std`](https://docs.rs/async-std/latest/async_std/) | `async_std` | `\"async-tls\"`                                        | [`rustls`][rustls]         |\n| [`tokio`](https://docs.rs/tokio/0.2/tokio/)                | `tokio`     | `\"tokio-util\"`, `\"tokio-rustls\"`, `\"webpki-roots\"`   | [`rustls`][rustls]         |\n| [`tokio`](https://docs.rs/tokio/0.2/tokio/)                | `tokio`     | `\"tokio-util\"`, `\"tokio-native-tls\"`, `\"native-tls\"` | [`native-tls`][native-tls] |\n| [`tokio`](https://docs.rs/tokio/0.2/tokio/)                | `tokio`     | `\"tokio-util\"`, `\"tokio-openssl\"`, `\"openssl\"`       | [`openssl`][openssl]       |\n\n[rustls]: https://docs.rs/rustls/0.18.1/rustls/\n[native-tls]: https://docs.rs/native-tls/0.2.4/native_tls/\n[openssl]: https://docs.rs/openssl/0.10/openssl/\n\n## Examples\n\n#### Using async_io to connect with..\n\n- [async_io_demo.rs](./examples/async_io_demo.rs)\n\n#### Using async_std to connect with..\n\n- [async_std_demo.rs](./examples/async_std_demo.rs)\n\n#### Using smol to connect with..\n\n- [smol_demo.rs](./examples/smol_demo.rs)\n\n#### Using tokio to connect with..\n\n- [tokio_demo.rs](./examples/tokio_demo.rs)\n\n#### How to use the crate as just a message parser(decoder)/encoder\n\n- [message_parse.rs](./examples/message_parse.rs)\n\n#### An a simple example of how one could built a bot with this\n\n- [simple_bot.rs](./examples/simple_bot.rs)\n\n## License\n\n`twitchchat` is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).\n\nSee `LICENSE-APACHE` and `LICENSE-MIT` for details.\n\n[docs_badge]: https://docs.rs/twitchchat/badge.svg\n[docs]: https://docs.rs/twitchchat\n[crates_badge]: https://img.shields.io/crates/v/twitchchat.svg\n[crates]: https://crates.io/crates/twitchchat\n[actions_badge]: https://github.com/museun/twitchchat/workflows/Rust/badge.svg\n[actions]: https://github.com/museun/twitchchat/actions\n[twitch]: https://dev.twitch.tv\n","funding_links":[],"categories":["Rust","Libraries"],"sub_categories":["Rust"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuseun%2Ftwitchchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuseun%2Ftwitchchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuseun%2Ftwitchchat/lists"}