Simplify code

This commit is contained in:
Slavi Pantaleev
2022-08-25 21:38:42 +03:00
parent 236a128129
commit 06856adb86
2 changed files with 13 additions and 27 deletions

View File

@@ -19,15 +19,15 @@ import (
// Bot represents matrix bot
type Bot struct {
noowner bool
federation bool
prefix string
domain string
rooms map[string]id.RoomID
roomsmu *sync.Mutex
log *logger.Logger
lp *linkpearl.Linkpearl
handledEvents sync.Map
noowner bool
federation bool
prefix string
domain string
rooms map[string]id.RoomID
roomsmu *sync.Mutex
log *logger.Logger
lp *linkpearl.Linkpearl
handledJoinEvents sync.Map
}
// New creates a new matrix bot