mirror of
https://github.com/maubot/maubot
synced 2025-08-29 19:00:39 +00:00
Separate plugin interface to reduce file size
This commit is contained in:
parent
d572522a96
commit
ef8fffaff8
9 changed files with 254 additions and 31 deletions
|
@ -22,6 +22,7 @@ import (
|
|||
|
||||
"maubot.xyz/config"
|
||||
"maubot.xyz/database"
|
||||
"maubot.xyz/interfaces"
|
||||
"maubot.xyz/matrix"
|
||||
log "maunium.net/go/maulogger"
|
||||
)
|
||||
|
@ -30,7 +31,7 @@ type Bot struct {
|
|||
Config *config.MainConfig
|
||||
Database *database.Database
|
||||
Clients map[string]*matrix.Client
|
||||
PluginCreators map[string]*PluginCreator
|
||||
PluginCreators map[string]*interfaces.PluginCreator
|
||||
Plugins map[string]*PluginWrapper
|
||||
Server *http.Server
|
||||
}
|
||||
|
@ -40,7 +41,7 @@ func New(config *config.MainConfig) *Bot {
|
|||
Config: config,
|
||||
Clients: make(map[string]*matrix.Client),
|
||||
Plugins: make(map[string]*PluginWrapper),
|
||||
PluginCreators: make(map[string]*PluginCreator),
|
||||
PluginCreators: make(map[string]*interfaces.PluginCreator),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue