{"id":21567339,"url":"https://github.com/amineo/t2_server_query_elixir","last_synced_at":"2025-10-03T21:53:29.311Z","repository":{"id":57555463,"uuid":"414751266","full_name":"amineo/t2_server_query_elixir","owner":"amineo","description":"Query a Tribes 2 server using Elixir!","archived":false,"fork":false,"pushed_at":"2022-04-13T22:01:34.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T15:47:51.307Z","etag":null,"topics":["elixir","tribes2","tribesnext","udp"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/t2_server_query/","language":"Elixir","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/amineo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-07T20:40:04.000Z","updated_at":"2022-04-13T22:01:48.000Z","dependencies_parsed_at":"2022-09-14T10:51:33.186Z","dependency_job_id":null,"html_url":"https://github.com/amineo/t2_server_query_elixir","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amineo%2Ft2_server_query_elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amineo%2Ft2_server_query_elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amineo%2Ft2_server_query_elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amineo%2Ft2_server_query_elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amineo","download_url":"https://codeload.github.com/amineo/t2_server_query_elixir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166637,"owners_count":20409177,"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":["elixir","tribes2","tribesnext","udp"],"created_at":"2024-11-24T10:30:05.562Z","updated_at":"2025-10-03T21:53:24.275Z","avatar_url":"https://github.com/amineo.png","language":"Elixir","readme":"# T2ServerQuery\n\nQuerying a Tribes 2 server actually requires sending 2 different packets to the server where the first byte is denoting the type of information we're asking for. The first is called the `info` packet which doesnt contain much more then the server name. The second is called the `status` packet which contains all the meat and potatoes.\n\nThe `T2ServerQuery.query/3` function makes requests for both `info` and `status` and combines them into a single response for easy consumption.\n\n\n\n## Installation\n\nThe package can be installed by adding `t2_server_query` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:t2_server_query, \"~\u003e 0.1.3\"}\n  ]\nend\n```\n\n\n## Usage\n\n```elixir\n# T2ServerQuery.query(\"35.239.88.241\", port // 28_000, timeout // 3_500)\n  T2ServerQuery.query(\"35.239.88.241\")\n  \n  {:ok,\n      %T2ServerQuery.QueryResult{\n        bot_count: 0,\n        game_type: \"Classic\",\n        map_name: \"Canker\",\n        max_player_count: 64,\n        mission_type: \"LakRabbit\",\n        player_count: 0,\n        players: [%{}],\n        server_description: \"Celebrating 20 Years of Tribes2! More information in Discord. \u003ca:playt2.com/discord\u003eplayt2.com/discord\u003c/a\u003e\",\n        server_name: \"Discord PUB\",\n        server_status: :online,\n        team_count: 1,\n        teams: [%{name: \"Storm\", score: 0}]\n      }}\n```\n\n## Docs\nThe docs can be found at [https://hexdocs.pm/t2_server_query](https://hexdocs.pm/t2_server_query).\n\nDocumentation has been generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famineo%2Ft2_server_query_elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famineo%2Ft2_server_query_elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famineo%2Ft2_server_query_elixir/lists"}