Skip to main content

A sexy, simple, yet powerful and extendable Slack bot

Project description

https://img.shields.io/pypi/v/slack-machine.svg https://img.shields.io/pypi/l/slack-machine.svg https://img.shields.io/pypi/pyversions/slack-machine.svg https://travis-ci.org/DandyDev/slack-machine.svg?branch=master https://codecov.io/gh/DandyDev/slack-machine/branch/master/graph/badge.svg

Slack Machine is a sexy, simple, yet powerful and extendable Slack bot. More than just a bot, Slack Machine is a framework that helps you develop your Slack team into a ChatOps powerhouse.

extra/logo.png

Features

  • Get started with mininal configuration

  • Built on top of the Slack RTM API for smooth, real-time interactions

  • Support for rich interactions using the Slack Web API

  • High-level API for maximum convenience when building plugins

  • Low-level API for maximum flexibility

  • Plugin API features:
    • Listen and respond to any regular expression

    • Capture parts of messages to use as variables in your functions

    • Respond to messages in channels, groups and direct message conversations

    • Respond with Emoji

    • Respond in threads

    • Send DMs to any user

    • Support for message attachments

    • Listen and respond to any Slack event supported by the RTM API

    • Store and retrieve any kind of data in persistent storage (currently Redis and in-memory storage are supported)

    • Schedule actions and messages

Coming Soon

  • Help texts for Plugins

  • Emit and listen to events

  • … and much more

Installation

You can install Slack Machine using pip:

$ pip install slack-machine

It is strongly recommended that you install slack-machine inside a virtual environment!

Usage

  1. Create a directory for your Slack Machine bot: mkdir my-slack-bot && cd my-slack-bot

  2. Add a local_settings.py file to your bot directory: touch local_settings.py

  3. Create a Bot User for your Slack team: https://my.slack.com/services/new/bot (take note of your API token)

  4. Add the Slack API token to your local_settings.py like this:

SLACK_API_TOKEN = 'xox-my-slack-token'
  1. Start the bot with slack-machine

  2. ...

  3. Profit!

Documentation

You can find the documentation for Slack Machine here: http://slack-machine.readthedocs.io/en/latest/

Go read it to learn how to properly configure Slack Machine, write plugins, and more!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slack-machine-0.7.tar.gz (67.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slack_machine-0.7-py2.py3-none-any.whl (31.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file slack-machine-0.7.tar.gz.

File metadata

  • Download URL: slack-machine-0.7.tar.gz
  • Upload date:
  • Size: 67.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for slack-machine-0.7.tar.gz
Algorithm Hash digest
SHA256 0b1916b3c0adac35a227201f0cc22eab1ba15dbc2751e45f1f2b079cf08bd114
MD5 5c684c2069141e3fdf0ccceb697f9d71
BLAKE2b-256 35c88b2b5e32055c9d84bcea8f2680c050de8b9e189788f7150b2aa65f718724

See more details on using hashes here.

File details

Details for the file slack_machine-0.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for slack_machine-0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0bdff0a2ea1565cce09be249b5f016b6db4939960ceb776db4894b9d1f92a736
MD5 efb8833f48ebc47d758a573d71e780c8
BLAKE2b-256 ba6a0d26fad7ca75121e925bb89e1e2ecd7726d8e8042574e79657bb7fc980f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page