https://github.com/bigbuildbench/robotty_twitch-irc-rs

https://github.com/bigbuildbench/robotty_twitch-irc-rs

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: BigBuildBench
  • License: mit
  • Language: Rust
  • Default Branch: master
  • Size: 619 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog Funding License

README.md

twitch-irc-rs

Rust CI status Crates.io Docs.rs

This is a client library to interface with Twitch chat.

This library is async and runs using the tokio runtime.

Example usage (This is the simple_listener example, see examples/simple_listener.rs and run it with cargo run --example simple_listener):

```rust use twitchirc::login::StaticLoginCredentials; use twitchirc::TwitchIRCClient; use twitch_irc::{ClientConfig, SecureTCPTransport};

[tokio::main]

pub async fn main() { // default configuration is to join chat as anonymous. let config = ClientConfig::default(); let (mut incoming_messages, client) = TwitchIRCClient::::new(config);

// first thing you should do: start consuming incoming messages,
// otherwise they will back up.
let join_handle = tokio::spawn(async move {
    while let Some(message) = incoming_messages.recv().await {
        println!("Received message: {:?}", message);
    }
});

// join a channel
// This function only returns an error if the passed channel login name is malformed,
// so in this simple case where the channel name is hardcoded we can ignore the potential
// error with `unwrap`.
client.join("sodapoppin".to_owned()).unwrap();

// keep the tokio executor alive.
// If you return instead of waiting the background task will exit.
join_handle.await.unwrap();

} ```

Check out the documentation on docs.rs for more details.

Owner

  • Name: BigBuildBench
  • Login: BigBuildBench
  • Kind: organization

abbr. B3, benchmarking the repo-level understanding capability of your LLMs by reconstructing project build-file.

GitHub Events

Total
  • Create event: 7
Last Year
  • Create event: 7

Dependencies

.github/workflows/cargo-audit.yml actions
  • actions/checkout v4 composite
  • rustsec/audit-check v1 composite
.github/workflows/changelog-check.yml actions
  • actions/checkout v4 composite
  • dangoslen/changelog-enforcer v2 composite
.github/workflows/rust.yml actions
  • actions-rs/cargo v1 composite
  • actions-rs/toolchain v1 composite
  • actions/checkout v4 composite
  • actions/upload-artifact v2 composite
Cargo.toml cargo
  • axum 0.6 development
  • maplit 1 development
  • serde_json 1 development
  • tokio 1 development
  • tracing-subscriber 0.3 development