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())