A Julia REPL that interacts with Slack.com's webhook integration
-
Set up a Slack Incoming WebHook and a Slack Outgoing WebHook.
-
Create a
config.jl
in this directory that contains the following entries:
TOKEN = "..." #Replace this with your Slack token for your outgoing webhook
INHOOK = "https://hooks.slack.com/services/..." #Replace this with your Webhook URL for your incoming webhook
- (Optional)
DEBUG = true #Print debugging information to console
- (Optional)
DEFAULTPAYLOAD = Dict( #Add custom JSON entries to the returning payload to the incoming webhook "username"=>"juliatan", "icon_emoji"=>":juliatan:" )
-
Make sure that
Morsel.jl
is installed in Julia. -
Run the
script/jl.sh