{"id":15555876,"url":"https://github.com/hugolgst/rich-crystal","last_synced_at":"2025-04-23T20:02:46.539Z","repository":{"id":104973140,"uuid":"134465929","full_name":"hugolgst/rich-crystal","owner":"hugolgst","description":"📇a simple Crystal extension for Discord Rich Presence","archived":false,"fork":false,"pushed_at":"2020-03-19T17:33:54.000Z","size":12,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T03:02:48.389Z","etag":null,"topics":["crystal","discord","rich-presence"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/hugolgst.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-22T19:30:13.000Z","updated_at":"2023-11-08T01:36:31.000Z","dependencies_parsed_at":"2023-03-13T14:52:07.930Z","dependency_job_id":null,"html_url":"https://github.com/hugolgst/rich-crystal","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugolgst%2Frich-crystal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugolgst%2Frich-crystal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugolgst%2Frich-crystal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugolgst%2Frich-crystal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugolgst","download_url":"https://codeload.github.com/hugolgst/rich-crystal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250506146,"owners_count":21441722,"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":["crystal","discord","rich-presence"],"created_at":"2024-10-02T15:10:56.275Z","updated_at":"2025-04-23T20:02:46.472Z","avatar_url":"https://github.com/hugolgst.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rich-crystal ![https://travis-ci.org/hugolgst/rich-crystal](https://api.travis-ci.org/hugolgst/rich-crystal.svg?branch=master)\n\nCrystal extension for Discord Rich Presence\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yml\ndependencies:\n  rich-crystal:\n    github: hugolgst/rich-crystal\n```\n\n## Usage\n\nYou must create a Client with your Discord Rich Presence application id :\n```crystal\nclient = RichCrystal::Client.new(174839413294239_u64)\n```\n\nThen by calling login you send the first handshake :\n```crystal\nclient.login\n```\n\nAnd you can set the Rich Presence activity (parameters can be found [here](https://github.com/discordapp/discord-rpc/blob/master/documentation/hard-mode.md#new-rpc-command) :\n```crystal\nclient.activity({\n  state =\u003e \"Running on Crystal\",\n  details =\u003e \"Heyyyy\",\n})\n```\n\n## Contributing\n\n1. Fork it (https://github.com/hugolgst/rich-crystal/fork)\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [hugolgst](https://github.com/hugolgst) - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugolgst%2Frich-crystal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugolgst%2Frich-crystal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugolgst%2Frich-crystal/lists"}