rich-crystal v0.1.0
rich-crystal
Crystal extension for Discord Rich Presence
Installation
Add this to your application's shard.yml
:
dependencies:
rich-crystal:
github: hugolgst/rich-crystal
Usage
You must create a Client with your Discord Rich Presence application id :
client = RichCrystal::Client.new(174839413294239_u64)
Then by calling login you send the first handshake :
client.login
And you can set the Rich Presence activity (parameters can be found here :
client.activity({
state => "Running on Crystal",
details => "Heyyyy",
})
Contributing
- Fork it (https://github.com/hugolgst/rich-crystal/fork)
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- hugolgst - creator, maintainer
Repository
rich-crystal
Owner
Statistic
- 8
- 1
- 0
- 0
- 0
- over 4 years ago
- May 22, 2018
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 14:24:51 GMT
Languages