{"id":17062532,"url":"https://github.com/skateman/hwping","last_synced_at":"2025-05-07T00:09:04.050Z","repository":{"id":28987786,"uuid":"32514444","full_name":"skateman/hwping","owner":"skateman","description":"IRC bot for HW pinging with the Dream Cheeky Thunder missile launcher","archived":false,"fork":false,"pushed_at":"2017-04-08T09:14:07.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T00:08:53.279Z","etag":null,"topics":["bot","irc","irc-bot","rocketlauncher","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-19T10:14:35.000Z","updated_at":"2023-01-13T13:17:12.000Z","dependencies_parsed_at":"2022-08-22T01:30:54.203Z","dependency_job_id":null,"html_url":"https://github.com/skateman/hwping","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skateman%2Fhwping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skateman%2Fhwping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skateman%2Fhwping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skateman%2Fhwping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skateman","download_url":"https://codeload.github.com/skateman/hwping/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788527,"owners_count":21804284,"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":["bot","irc","irc-bot","rocketlauncher","ruby"],"created_at":"2024-10-14T10:50:10.963Z","updated_at":"2025-05-07T00:09:04.028Z","avatar_url":"https://github.com/skateman.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hwping\n\n[![Gem Version](https://badge.fury.io/rb/hwping.svg)](http://badge.fury.io/rb/hwping)\n[![Dependency Status](https://gemnasium.com/skateman/hwping.svg)](https://gemnasium.com/skateman/hwping)\n[![Build Status](https://travis-ci.org/skateman/hwping.svg)](https://travis-ci.org/skateman/hwping)\n[![Inline docs](http://inch-ci.org/github/skateman/hwping.svg?branch=master)](http://inch-ci.org/github/skateman/hwping)\n\nIRC bot for HW pinging with the Dream Cheeky Thunder missile launcher.\n\n## Installation\nThe bot was tested on **ruby 2.0.0-p643**, but it should work with other versions. It uses `libusb` for the USB communication and `cinch` as the IRC client.\n```bash\ngem install hwping\n```\n\n## Usage\n```bash\nhwping [options]\n```\n\n### Configuration\nThe bot uses `./config.yml` as a configuration file, which is automatically saved upon exit. An alternative configuration file can be specified with the `-c/--config-file` argument.\n\nThe default settings are those:\n\n```yaml\n---\nnick: hwping\nserver: irc.freenode.net\nport: 6667\nchannels: # an array of channels to listen without the beginning # symbol\n  - hwping-test\nauth_nicks: # an array of nicks to obey\ntargets: # a hash in {nick =\u003e [x, y]} format specifying the possible targets\nwebcam:\n  path: /tmp # the folder where the image will be saved\n```\n\n### Channel message commands:\n- `hwping \u003cnick\u003e` - fire a rocket at \u0026lt;nick\u0026gt; when he has been set as a target and is present in the channel's user list\n\n### Private message commands:\n- `help` - displays a help text\n- `snap` - creates a snapshot with the attached webcamera and returns with its URL\n- `panorama` - creates a panorama with the attached webcamera and returns with its URL\n- `fire` - fires a rocket\n- `reset` - resets the launcher into the default position (bottom-left)\n- `position` - returns the actual position of the rocket launcher\n- `\u003cdirection\u003e \u003cms\u003e` - rotates the launcher into the given direction (up, down, left, right) for the given milliseconds\n- `target list` - displays the list of the available targets\n- `target get \u003cnick\u003e` - displays the coordinates of \u0026lt;nick\u0026gt;\n- `target del \u003cnick\u003e` - deletes the coordinates of \u0026lt;nick\u0026gt;\n- `target set \u003cnick\u003e` - sets the coordinates of \u0026lt;nick\u0026gt; to the actual position\n- `target set \u003cnick\u003e \u003cX\u003e \u003cY\u003e` - sets the coordinates of \u0026lt;nick\u0026gt; to right(X), up(Y)\n\n## TODO\n- Listen to a nick other than `hwping`\n- High-precision timer for better positioning\n- Event-based solution instead of threads\n- Add a superuser to modify the list of authorized users during runtime\n\n## License\nThis project is released under the GPLv2 license.\n\n## Credits\nThe launcher code in `lib/hwping/launcher.rb` was inspired by [robhurring/thunder](https://github.com/robhurring/thunder).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskateman%2Fhwping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskateman%2Fhwping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskateman%2Fhwping/lists"}