bot

package
v0.0.0-...-7dd30be Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

slack api functions

Index

Constants

View Source
const (
	Commit = iota + 1
	Booking
)

MessageType

View Source
const (
	NOT_LOADING = iota
	OK
	ERROR
	LOST
)

Variables

This section is empty.

Functions

func GetUsers

func GetUsers()

모든 유저를 가져옴

Types

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

save bot token struct

func InitBot

func InitBot(key string) *Bot

initalize bot

func (*Bot) SendingToChannel

func (bot *Bot) SendingToChannel(message Message, msgType int)

message to channel

type Message

type Message struct {
	Title  string
	Attach slack.Attachment
}

func (Message) Build

func (com Message) Build() (string, slack.Attachment)

build message

func (Message) SetMessage

func (com Message) SetMessage(message string)

Setting message

Jump to

Keyboard shortcuts

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