Skip to content

Commit

Permalink
LukeBot: Run Global modules before loading users
Browse files Browse the repository at this point in the history
Users should be loaded after Global modules are fully running.
Otherwise we may experience exceptions coming from ex. missing Events or
other not initialized problems in Main Modules.
  • Loading branch information
lookeypl committed Sep 8, 2024
1 parent 7d1b43e commit 679387f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LukeBot/LukeBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,11 @@ public void Run(ProgramOptions opts)
Logger.Log().Info("Initializing UI {0}...", uiType.ToString());
UserInterface.Initialize(uiType, this);

LoadUsers();

Logger.Log().Info("Running Global modules...");
GlobalModules.Run();

LoadUsers();

Logger.Log().Info("Giving control to UI");
AddCLICommands();
UserInterface.CLI.MainLoop();
Expand Down

0 comments on commit 679387f

Please sign in to comment.