~pixelinc/Slack-RTM

A slack real-time-messaging library in Crystal
Add user profile
Remove macro print
update name other places

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~pixelinc/Slack-RTM
read/write
git@git.sr.ht:~pixelinc/Slack-RTM

You can also use your local clone with git send-email.

#slack_rtm

A crystal slack real-time-messaging lib

#Installation

Just add to your dependencies and DEWIT

slack_rtm:
  git: https://git.sr.ht/~pixelinc/Slack-RTM
  branch: master

#Usage

client = Slack::Client.new("token")

# optionally enable caching
cache = Slack::Cache.new(client)
client.cache = cache

client.on_message do |event|
  user = cache.resolve_user(event.user)
  puts "I got a message that says: #{event.text}"
  puts user.name
end

client.run

#Contributors

  • PixeL - creator and maintainer