DasBot v0.1.1 API Reference

Modules

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

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

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

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

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

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