{"id":13337149,"url":"https://github.com/gerdoe-jr/tw-econ","last_synced_at":"2025-03-11T04:31:42.317Z","repository":{"id":50762100,"uuid":"371166339","full_name":"gerdoe-jr/tw-econ","owner":"gerdoe-jr","description":"Rust library for using Teeworlds external console","archived":false,"fork":false,"pushed_at":"2024-10-28T16:32:56.000Z","size":38,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T01:47:12.418Z","etag":null,"topics":["cli","teeworlds"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gerdoe-jr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-05-26T20:54:23.000Z","updated_at":"2024-10-28T16:33:00.000Z","dependencies_parsed_at":"2024-10-21T12:32:56.293Z","dependency_job_id":null,"html_url":"https://github.com/gerdoe-jr/tw-econ","commit_stats":{"total_commits":31,"total_committers":3,"mean_commits":"10.333333333333334","dds":"0.16129032258064513","last_synced_commit":"533283daf178f73d6ac932336ccf9240a87a0956"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerdoe-jr%2Ftw-econ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerdoe-jr%2Ftw-econ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerdoe-jr%2Ftw-econ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerdoe-jr%2Ftw-econ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerdoe-jr","download_url":"https://codeload.github.com/gerdoe-jr/tw-econ/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242972405,"owners_count":20215197,"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":["cli","teeworlds"],"created_at":"2024-07-29T19:11:13.719Z","updated_at":"2025-03-11T04:31:42.045Z","avatar_url":"https://github.com/gerdoe-jr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tw-econ\n\n## Description\nRust library provides you a simple synchronous interface to interconnect with Teeworlds external console.\n\n## Example\n\nLet's say you have Teeworlds server running with `ec_password zohan` and `ec_port 6060` and you want to use it's econ. \n\n```rust\nuse tw_econ::Econ;\n\nfn main() -\u003e std::io::Result\u003c()\u003e {\n    let mut econ = Econ::new();\n\n    econ.connect(\"127.0.0.1:6060\")?;\n\n    let authed = econ.try_auth(\"nahoz\")?;\n    assert_eq!(authed, false);\n\n    let authed = econ.try_auth(\"hozan\")?;\n    assert_eq!(authed, false);\n\n    let authed = econ.try_auth(\"zohan\")?;\n    assert_eq!(authed, true);\n\n    econ.send_line(\"echo \\\"Hi\\\"\")?;\n    \n    println!(\"{}\", econ.recv_line(true)?);\n\n    Ok(())\n}\n```\n\n## Projects\n* [tw-econ-tui](https://github.com/gerdoe-jr/tw-econ-tui)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerdoe-jr%2Ftw-econ","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerdoe-jr%2Ftw-econ","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerdoe-jr%2Ftw-econ/lists"}