automatically remove mailboxes in empty rooms, fixes #3

This commit is contained in:
Aine
2022-08-26 16:22:44 +03:00
parent 2dcba843cc
commit 2da1aacc7a
3 changed files with 37 additions and 13 deletions

View File

@@ -19,14 +19,14 @@ import (
// Bot represents matrix bot
type Bot struct {
noowner bool
federation bool
prefix string
domain string
rooms sync.Map
log *logger.Logger
lp *linkpearl.Linkpearl
handledJoinEvents sync.Map
noowner bool
federation bool
prefix string
domain string
rooms sync.Map
log *logger.Logger
lp *linkpearl.Linkpearl
handledMembershipEvents sync.Map
}
// New creates a new matrix bot