{"id":20156727,"url":"https://github.com/rojosinalma/q2_server_query","last_synced_at":"2025-07-27T19:34:57.326Z","repository":{"id":56889752,"uuid":"122370592","full_name":"rojosinalma/q2_server_query","owner":"rojosinalma","description":"Simple gem to query Quake 2 Servers","archived":false,"fork":false,"pushed_at":"2018-02-26T13:19:01.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-21T22:10:26.941Z","etag":null,"topics":["game-development","gameservers","protocol","quake2"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/rojosinalma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-21T17:41:18.000Z","updated_at":"2023-05-13T07:56:49.000Z","dependencies_parsed_at":"2022-08-20T16:00:19.248Z","dependency_job_id":null,"html_url":"https://github.com/rojosinalma/q2_server_query","commit_stats":null,"previous_names":["elfenars/q2_server_query"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/rojosinalma/q2_server_query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rojosinalma%2Fq2_server_query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rojosinalma%2Fq2_server_query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rojosinalma%2Fq2_server_query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rojosinalma%2Fq2_server_query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rojosinalma","download_url":"https://codeload.github.com/rojosinalma/q2_server_query/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rojosinalma%2Fq2_server_query/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267414365,"owners_count":24083599,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["game-development","gameservers","protocol","quake2"],"created_at":"2024-11-13T23:39:53.047Z","updated_at":"2025-07-27T19:34:57.292Z","avatar_url":"https://github.com/rojosinalma.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Q2ServerQuery\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/0bc20571f72a305dff67/maintainability)](https://codeclimate.com/github/elfenars/q2_server_query/maintainability)\n[![Dependency Status](https://gemnasium.com/badges/github.com/elfenars/q2_server_query.svg)](https://gemnasium.com/github.com/elfenars/q2_server_query)\n\nI got tired of finding workarounds to query Q2 Servers by using JS libraries or other language implementations, so I created this simple gem.\n\n**NOTE: This works ONLY with Quake 2 servers, it's not adapted for other protocols, but it might work with game servers that use the same protocol**\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'q2_server_query'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install q2_server_query\n\n## Usage\n\n```ruby\nclient = Q2ServerQuery::Client.new(\"your.serverhostname.com (or IP)\", server_port)\nclient.status\n\n# Using AQ2 Server as example.\n=\u003e {\n \"*Q2Admin\"=\u003e\"2.0~fa34812\",\n \"_admin\"=\u003e\"some_admin_name\",\n \"actionversion\"=\u003e\"TNG 2.81 2017-08-25 07abb71\",\n \"allitem\"=\u003e\"0\",\n \"allweapon\"=\u003e\"0\",\n \"capturelimit\"=\u003e\"0\",\n \"cheats\"=\u003e\"0\",\n \"ctf\"=\u003e\"0\",\n \"deathmatch\"=\u003e\"1\",\n \"dmflags\"=\u003e\"768\",\n \"fraglimit\"=\u003e\"0\",\n \"game\"=\u003e\"action\",\n \"gamedate\"=\u003e\"Feb 21 2018\",\n \"gamedir\"=\u003e\"action\",\n \"gamename\"=\u003e\"action\",\n \"hostname\"=\u003e\"AQ2 Server\",\n \"items\"=\u003e\"1\",\n \"mapname\"=\u003e\"teamjungle\",\n \"maptime\"=\u003e\"0:00\",\n \"matchmode\"=\u003e\"0\",\n \"maxclients\"=\u003e\"16\",\n \"needpass\"=\u003e\"0\",\n \"port\"=\u003e\"27910\",\n \"protocol\"=\u003e\"34\",\n \"q2a_mvd\"=\u003e\"1.6hau\",\n \"roundlimit\"=\u003e\"10\",\n \"roundtimelimit\"=\u003e\"2\",\n \"t1\"=\u003e\"0\",\n \"t2\"=\u003e\"0\",\n \"t3\"=\u003e\"0\",\n \"teamplay\"=\u003e\"1\",\n \"tgren\"=\u003e\"1\",\n \"timelimit\"=\u003e\"20\",\n \"use_3teams\"=\u003e\"0\",\n \"use_tourney\"=\u003e\"0\",\n \"uptime\"=\u003e\"1+2:24.11\",\n \"players\"=\u003e[\n    {\"frags\"=\u003e\"99\", \"ping\"=\u003e\"99\", \"name\"=\u003e\"some_player\"},\n    {\"frags\"=\u003e\"99\", \"ping\"=\u003e\"99\", \"name\"=\u003e\"another_player\"}\n ]\n}\n```\n\n## Development\n\n1. Fork it.\n2. Do your thang.\n3. Push a PR.\n4. Ping me.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/elfenars/q2_server_query.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frojosinalma%2Fq2_server_query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frojosinalma%2Fq2_server_query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frojosinalma%2Fq2_server_query/lists"}