bot

package
v0.0.0-...-95f8b43 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelName

func ChannelName(ch *discord.Channel, short bool) string

ChannelName returns the name of a channel, or a list of recipients if it's a DM.

Types

type Session

type Session struct {
	*ningen.State
	Account store.Account
	// contains filtered or unexported fields
}

Session is a Discord SMS gateway session.

func NewSession

func NewSession(store store.AccountStore, sms twisms.MessageSender, logger *slog.Logger) *Session

NewSession creates a new session.

func (*Session) Execute

Execute executes the given command.

func (*Session) Start

func (s *Session) Start(ctx context.Context) error

Start starts the handler.

Jump to

Keyboard shortcuts

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