From 4def4b7d7ca9105ea77b2781fa09384ab7132994 Mon Sep 17 00:00:00 2001 From: Vivien <34387011+vivien8261@users.noreply.github.com> Date: Tue, 24 Oct 2023 14:11:13 +0800 Subject: [PATCH] fix bug --- amiya.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amiya.py b/amiya.py index 5406f426..dd1e4bba 100644 --- a/amiya.py +++ b/amiya.py @@ -17,6 +17,7 @@ def run_amiya(*tasks: Coroutine): os.path.dirname('resource/env/python-dlls'), os.path.dirname('resource/env/python-standard-lib.zip'), ] + loader = PluginsLoader(bot) asyncio.run(loader.load_local_plugins()) asyncio.run( @@ -32,5 +33,4 @@ def run_amiya(*tasks: Coroutine): if __name__ == '__main__': - loader = PluginsLoader(bot) run_amiya(bot.start(launch_browser=True), app.serve())