slackPackage

package
v0.0.0-...-989d8f1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

type Slack struct {
	*slack.RTM
}

Slack sturct extend the slackRTM method

func InitSlack

func InitSlack() *Slack

InitSlack initalizes the struct object

func (*Slack) FetchSlackUsers

func (api *Slack) FetchSlackUsers() []slack.User

FetchSlackUsers fetches a list of slack users and saves thier user ids by this method could use the GetInfo()

func (*Slack) GetSelfID

func (api *Slack) GetSelfID() string

GetSelfID returns the ID of the slack bot

func (*Slack) MessageUser

func (api *Slack) MessageUser(user string, message string)

MessageUser opens a channel to a user if it doesn't exist and messages the user

Jump to

Keyboard shortcuts

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