slack

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package slack is the Slack adapter for botbooter, connecting via Socket Mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client added in v0.2.0

func Client(b *core.Bot) *slackapi.Client

Client returns the Slack Web API client backing b, or nil if b is not a Slack bot.

func New

func New(appToken, botToken string) *core.Bot

New creates a Slack bot that connects via Socket Mode.

func RawEvent added in v0.2.0

func RawEvent(m *core.Message) (*slackevents.MessageEvent, bool)

RawEvent returns the raw Slack message event carried on m, reporting whether m originated from Slack.

func SocketClient added in v0.2.0

func SocketClient(b *core.Bot) *socketmode.Client

SocketClient returns the Socket Mode client backing b, or nil if b is not a Slack bot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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