forked from uniborg/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:
|
try:
|
||||||
if shortname in borg._plugins:
|
if shortname in borg._plugins:
|
||||||
borg.remove_plugin(shortname)
|
await borg.remove_plugin(shortname)
|
||||||
borg.load_plugin(shortname)
|
borg.load_plugin(shortname)
|
||||||
|
|
||||||
msg = await event.respond(
|
msg = await event.respond(
|
||||||
|
@ -39,7 +39,7 @@ async def remove(event):
|
||||||
if shortname == "_core":
|
if shortname == "_core":
|
||||||
msg = await event.respond(f"Not removing {shortname}")
|
msg = await event.respond(f"Not removing {shortname}")
|
||||||
elif shortname in borg._plugins:
|
elif shortname in borg._plugins:
|
||||||
borg.remove_plugin(shortname)
|
await borg.remove_plugin(shortname)
|
||||||
msg = await event.respond(f"Removed plugin {shortname}")
|
msg = await event.respond(f"Removed plugin {shortname}")
|
||||||
else:
|
else:
|
||||||
msg = await event.respond(f"Plugin {shortname} is not loaded")
|
msg = await event.respond(f"Plugin {shortname} is not loaded")
|
||||||
|
|
Loading…
Reference in New Issue