forked from kate/uniborg
await the now async remove_plugin
This commit is contained in:
parent
93cbb44459
commit
168ee165b9
|
@ -17,7 +17,7 @@ async def load_reload(event):
|
|||
|
||||
try:
|
||||
if shortname in borg._plugins:
|
||||
borg.remove_plugin(shortname)
|
||||
await borg.remove_plugin(shortname)
|
||||
borg.load_plugin(shortname)
|
||||
|
||||
msg = await event.respond(
|
||||
|
@ -39,7 +39,7 @@ async def remove(event):
|
|||
if shortname == "_core":
|
||||
msg = await event.respond(f"Not removing {shortname}")
|
||||
elif shortname in borg._plugins:
|
||||
borg.remove_plugin(shortname)
|
||||
await borg.remove_plugin(shortname)
|
||||
msg = await event.respond(f"Removed plugin {shortname}")
|
||||
else:
|
||||
msg = await event.respond(f"Plugin {shortname} is not loaded")
|
||||
|
|
Loading…
Reference in New Issue