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(source 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(source 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(source mautrix.EventSource, evt *event.Event)
NewEvent takes a new matrix event and handles it
Click to show internal directories.
Click to hide internal directories.