From 9daec6b13216a699e8a0e7ee54fcb8caf20b2d27 Mon Sep 17 00:00:00 2001 From: Brandon Ingli Date: Wed, 27 Dec 2023 16:17:49 -0600 Subject: [PATCH] Allow async onload functions --- .gitignore | 5 ++++- src/pluginManager.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index add47d3..3d927f7 100644 --- a/.gitignore +++ b/.gitignore @@ -139,4 +139,7 @@ dist # Plugins (These are to be handled in separate repos) plugins/* -!plugins/README.md \ No newline at end of file +!plugins/README.md + +# Analytics DBs +*.sqlite \ No newline at end of file diff --git a/src/pluginManager.js b/src/pluginManager.js index 1bdedf5..9b93238 100644 --- a/src/pluginManager.js +++ b/src/pluginManager.js @@ -69,7 +69,7 @@ function load(bot) { if (loaded && module?.onLoad) { logger.log("debug", `Running "${module.NAME}" onLoad function...`); - module.onLoad(bot); + await module.onLoad(bot); } });