mirror of
https://github.com/maubot/maubot
synced 2025-08-30 22:30:38 +00:00
Finish plugin API and add basic login system
This commit is contained in:
parent
d7f072aeff
commit
14fd0d6ac9
16 changed files with 160 additions and 62 deletions
|
@ -207,8 +207,10 @@ class ZippedPluginLoader(PluginLoader):
|
|||
self.log.debug(f"Loaded and imported plugin {self.id} from {self.path}")
|
||||
return plugin
|
||||
|
||||
async def reload(self) -> Type[PluginClass]:
|
||||
async def reload(self, new_path: Optional[str] = None) -> Type[PluginClass]:
|
||||
await self.unload()
|
||||
if new_path is not None:
|
||||
self.path = new_path
|
||||
return await self.load(reset_cache=True)
|
||||
|
||||
async def unload(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue