forked from kate/uniborg
Make unload_plugin async for reasons
This commit is contained in:
parent
febe3c4bac
commit
93cbb44459
|
@ -72,7 +72,7 @@ class Uniborg(TelegramClient):
|
||||||
self._plugins[shortname] = mod
|
self._plugins[shortname] = mod
|
||||||
self._logger.info(f"Successfully loaded plugin {shortname}")
|
self._logger.info(f"Successfully loaded plugin {shortname}")
|
||||||
|
|
||||||
def remove_plugin(self, shortname):
|
async def remove_plugin(self, shortname):
|
||||||
name = self._plugins[shortname].__name__
|
name = self._plugins[shortname].__name__
|
||||||
|
|
||||||
for i in reversed(range(len(self._event_builders))):
|
for i in reversed(range(len(self._event_builders))):
|
||||||
|
|
Loading…
Reference in New Issue