Slug v0.1.1 API Reference

Modules

The slug specification. Slugs are like Plugs, but for Slack

This module can be use-d into a module in order to define a Slack bot. It also includes functions for sending messages and events from a bot to a slack channel

A slug that checks if the bot has been mentioned

Filters out events produced by the bot itself. Helpful if you want to ignore any events your bot is generating

Filters out Slack events that are not messages. For example, this will filter out events indicating that a new user has joined the channel

Helpful for debugging. This slug will inspect the event that is moving through the pipeline and log it out with Logger.info. The event will not be changed

This module defines the Slug.Event type, representing a Slack event

Tools for building a pipeline of slugs. This is used by Slug.Bot and isn’t intended to be used directly

This module provides access to a few Slack Web API calls, as well as maintaining a cache of user and channel information for quick lookups