Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 805 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 805 Bytes

SlackAPI.jl

CI codecov

A minimal and lightweight Julia wrapper for the Slack API

Usage

julia> ] add SlackAPI
using SlackAPI

Context

token = "xoxb-xxxxxxxxxx-xxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx"

context = SlackContext(token)

Channel Message

channel = "Cxxxxxxxxxx"
message = "Hello, World!"

SlackAPI.channel_message(context, channel, message)

Is the User Active?

user = "Uxxxxxxxxxx"

is_active = SlackAPI.is_active(context, user)