Home

Slacker.jl

Index

Slacker.jl is a package that allows sending messages to Slack. It was designed to in form a group of users, when a computation has finished.

Functions

Slacker.addConfig — Function.

Add a Slack server configuration to the registry. Multiple servers can be defined by adjusting the name parameter.

Examples

julia> addConfig(SlackConfig("server.url", "username", "#channel", ":smile:"))
source
Slacker.addConfig — Method.

Add a Slack server configuration to the registry. Shorthand to create a configuration that posts to the random channel (uses Juliabot and :ghost: as defaults).

Examples

julia> addConfig("server.url", "config_name")
source
Slacker.hasConfig — Function.

Tests whether a configuration exists

source
Slacker.loadConfig — Function.

Load the default configuration from the registry. Other configurations may be loaded by specifying the name parameter.

source

Load the registry and return all registered servers as a Dict.

source

removes an individual configuration call with parameter "default" to delete the default configuration

source

Deletes the whole registry from the computer.

source
Slacker.sendMessage — Function.

Sends a message textto the configured default slack server or the one specified in cfg.

source

Sends a message textto Server defined in the configuration cfg.

source