diff --git a/FreePackages/Handlers/PackageHandler.cs b/FreePackages/Handlers/PackageHandler.cs index 09d8993..405213b 100644 --- a/FreePackages/Handlers/PackageHandler.cs +++ b/FreePackages/Handlers/PackageHandler.cs @@ -87,6 +87,7 @@ internal static async Task OnBotLoggedOn(Bot bot) { } await Handlers[bot.BotName].FetchUserData().ConfigureAwait(false); + Handlers[bot.BotName].PackageQueue.Start(); } private async Task FetchUserData() { diff --git a/FreePackages/Handlers/PackageQueue.cs b/FreePackages/Handlers/PackageQueue.cs index 754fedc..65680d9 100644 --- a/FreePackages/Handlers/PackageQueue.cs +++ b/FreePackages/Handlers/PackageQueue.cs @@ -56,6 +56,10 @@ internal void AddPackages(IEnumerable packages) { } } + internal void Start() { + UpdateTimer(DateTime.Now.AddMinutes(1)); + } + private async Task ProcessQueue() { if (!Bot.IsConnectedAndLoggedOn) { UpdateTimer(DateTime.Now.AddMinutes(1));