synchandler

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageHandler

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

MessageHandler handles message events

func NewMessageHandler

func NewMessageHandler(database types.Database, messenger asyncmessenger.Messenger, botInfo *types.BotInfo, replyActions []*types.ReplyAction, messageAction []*types.Action, olm *crypto.OlmMachine) *MessageHandler

NewMessageHandler returns a new MessageHandler

func (*MessageHandler) NewEvent

func (s *MessageHandler) NewEvent(_ mautrix.EventSource, evt *event.Event)

NewEvent takes a new matrix event and handles it

type ReactionHandler

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

ReactionHandler handles message events

func NewReactionHandler

func NewReactionHandler(database types.Database, messenger asyncmessenger.Messenger, botInfo *types.BotInfo, actions []*types.ReactionAction) *ReactionHandler

NewReactionHandler returns a new ReactionHandler

func (*ReactionHandler) NewEvent

func (s *ReactionHandler) NewEvent(_ mautrix.EventSource, evt *event.Event)

NewEvent takes a new matrix event and handles it

type StateMemberHandler

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

StateMemberHandler handles state_member events

func NewStateMemberHandler

func NewStateMemberHandler(database types.Database, messenger asyncmessenger.Messenger, matrixClient *mautrix.Client, botInfo *types.BotInfo, botSettings *configuration.BotSettings, olm *crypto.OlmMachine) *StateMemberHandler

NewStateMemberHandler returns a new StateMemberHandler

func (*StateMemberHandler) NewEvent

func (s *StateMemberHandler) NewEvent(_ mautrix.EventSource, evt *event.Event)

NewEvent takes a new matrix event and handles it

Jump to

Keyboard shortcuts

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