crystaldiscord

Version, currently master branch1 version
  • master branchlatestDec 25, 2023

github.com/Zomatree/crystaldiscord

a discord lib and bot in crystal

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  crystaldiscord:
    github: Zomatree/crystaldiscord
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.36.1
License
MIT
Author
Zomatree

Dependencies

This version declares no dependencies.

README

crystaldiscord

a discord library written in crystal.

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  crystaldiscord:
    github: Zomatree/crystaldiscord
  1. Run shards install

Usage

require "crystaldiscord"

client = Crystaldiscord::Client.new "token goes here"

client.on_message = ->(msg : Crystaldiscord::Message) {
    puts "#{msg.author.user.name}: #{msg.content}"
}

client.run()

Contributing

  1. Fork it (https://github.com/Zomatree/crystaldiscord/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