slackbot

package
v0.0.0-...-c5462c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package slackbot provides all the leanmanager logic for the Slack bot

Package slackbot provides all the leanmanager logic for the Slack bot

Package slackbot provides all the leanmanager logic for the Slack bot

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchSlackbot

func LaunchSlackbot(slackTokenArg, teamIDArg, apiserverHostArg string, apiserverPortArg int)

LaunchSlackbot starts the Slackbot connecting to Slack and starting to process messages

Types

type Channel

type Channel struct {
	ID        string      `json:"id"`
	Name      string      `json:"name"`
	IsChannel string      `json:"is_channel"`
	Members   interface{} `json:"members"`
}

Channel represents the Slack Channel or Group where the bot is participating

type Member

type Member string

Member defines the participants in the Channel with the bot

type Message

type Message struct {
	ID      uint64      `json:"id"`
	Type    string      `json:"type"`
	User    string      `json:"user,omitempty"`
	Channel interface{} `json:"channel"`
	Text    string      `json:"text"`
}

Message represents the message received from Slack

func (Message) String

func (m Message) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL