Add user profile
Remove macro print
update name other places
A crystal slack real-time-messaging lib
Just add to your dependencies
and DEWIT
slack_rtm:
git: https://git.sr.ht/~pixelinc/Slack-RTM
branch: master
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