Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Feb 22, 2023
2 parents 5fb4194 + 378146b commit aa9b077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Marco/Marco.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<VersionPrefix>1.3.0</VersionPrefix>
<VersionPrefix>1.3.1</VersionPrefix>
</PropertyGroup>

<PropertyGroup Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' == ''">
Expand Down
4 changes: 4 additions & 0 deletions Marco/Services/MacroService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.EntityFrameworkCore.ChangeTracking;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using NLog;
using X10D.Collections;

namespace Marco.Services;
Expand All @@ -16,6 +17,7 @@ namespace Marco.Services;
/// </summary>
internal sealed class MacroService : BackgroundService
{
private static readonly ILogger Logger = LogManager.GetCurrentClassLogger();
private readonly IServiceScopeFactory _scopeFactory;
private readonly DiscordClient _discordClient;
private readonly Dictionary<DiscordGuild, Dictionary<string, Macro>> _macros = new();
Expand Down Expand Up @@ -319,6 +321,8 @@ public async Task UpdateFromDatabaseAsync(DiscordGuild guild)
for (var index = 0; index < aliases.Count; index++)
macros[aliases[index]] = macro;
}

Logger.Info($"Loaded {macros.Count} macros for {guild}");
}

/// <inheritdoc />
Expand Down

0 comments on commit aa9b077

Please sign in to comment.