robot

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InfoColor    = "info"
	CommentColor = "comment"
	WarningColor = "warning"
)

Functions

func CardMessage added in v1.0.2

func CardMessage(title, text string, btns []map[string]string) error

func Color

func Color(text, color string) string

func Init

func Init(robot RobotInterface)

func LimitedAlarm

func LimitedAlarm(key string, duration time.Duration, content string, at ...string) error

func MarkdownMessage

func MarkdownMessage(text string, at ...string) error

func Message

func Message(text string, at ...string) error

func SetToken

func SetToken(token string)

Types

type RobotInterface

type RobotInterface interface {
	SetToken(token string)
	Message(text string, at ...string) error
	MarkdownMessage(text string, at ...string) error
	CardMessage(title, text string, btns []map[string]string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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