Simplify code
This commit is contained in:
18
bot/bot.go
18
bot/bot.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user