Skip to content

hugolgst/rich-crystal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rich-crystal https://travis-ci.org/hugolgst/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

  1. Fork it (https://github.com/hugolgst/rich-crystal/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

📇a simple Crystal extension for Discord Rich Presence

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published