bot

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

func NewSlack

func NewSlack(options SlackOptions, observability *common.Observability, processors *common.Processors) *Slack

func (*Slack) Name

func (s *Slack) Name() string

func (*Slack) Start

func (t *Slack) Start(wg *sync.WaitGroup)

type SlackOptions

type SlackOptions struct {
	BotToken       string
	AppToken       string
	Debug          bool
	ReplyInThread  bool
	ReactionDoing  string
	ReactionDone   string
	ReactionFailed string
	DefaultCommand string
	HelpCommand    string
}

type SlackRichTextQuote

type SlackRichTextQuote struct {
	Type     slack.RichTextElementType    `json:"type"`
	Elements []*SlackRichTextQuoteElement `json:"elements"`
}

func (SlackRichTextQuote) RichTextElementType

func (r SlackRichTextQuote) RichTextElementType() slack.RichTextElementType

type SlackRichTextQuoteElement

type SlackRichTextQuoteElement struct {
	Type   slack.RichTextElementType `json:"type"`
	Text   string                    `json:"text,omitempty"`
	UserID string                    `json:"user_id,omitempty"`
}

func (SlackRichTextQuoteElement) RichTextElementType

func (r SlackRichTextQuoteElement) RichTextElementType() slack.RichTextElementType

type SlackUser

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

func (*SlackUser) ID

func (su *SlackUser) ID() string

func (*SlackUser) Name

func (su *SlackUser) Name() string

type Telegram

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

func NewTelegram

func NewTelegram(options TelegramOptions, observability *common.Observability, processors *common.Processors) *Telegram

func (*Telegram) Name

func (t *Telegram) Name() string

func (*Telegram) Start

func (t *Telegram) Start(wg *sync.WaitGroup)

type TelegramOptions

type TelegramOptions struct {
	BotToken string
	Debug    bool
	Timeout  int
	Offset   int
}

Jump to

Keyboard shortcuts

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