Skip to content

Commit

Permalink
LogChannelHelper: only initialise once
Browse files Browse the repository at this point in the history
Updates #215
  • Loading branch information
Erisa committed Aug 3, 2024
1 parent 123925e commit f8933a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Events/ReadyEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ public static async Task OnReady(DiscordClient client, SessionCreatedEventArgs _
{

homeGuild = await discord.GetGuildAsync(cfgjson.ServerID);
await LogChannelHelper.UnpackLogConfigAsync(cfgjson);

if (!LogChannelHelper.ready)
await LogChannelHelper.UnpackLogConfigAsync(cfgjson);

var fetchResult = await APIs.ServerAPI.FetchMaliciousServersList();
if (fetchResult is not null)
{
Expand Down

0 comments on commit f8933a9

Please sign in to comment.