mirror of
https://github.com/maubot/maubot
synced 2025-08-29 15:40:37 +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
|
@ -86,10 +86,9 @@ func (bot *Bot) createPlugins() {
|
|||
continue
|
||||
}
|
||||
|
||||
|
||||
log.Debugf("Created plugin %s (type %s v%s)\n", plugin.ID, creator.Name, creator.Version)
|
||||
bot.Plugins[plugin.ID] = &PluginWrapper{
|
||||
Plugin: creator.Create(bot, plugin, client),
|
||||
Plugin: creator.Create(client),
|
||||
Creator: creator,
|
||||
DB: plugin,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue