Merge branch 'stevanfreeborn/feat/add-stream-notification' of github.com:StevanFreeborn/steves-bot into stevanfreeborn/feat/add-stream-notification

This commit is contained in:
Stevan Freeborn
2025-05-31 21:58:25 -05:00
@@ -17,9 +17,10 @@ public static class ServicesExtensions
c.BaseAddress = new Uri(discordOptions.ApiUrl);
c.DefaultRequestHeaders.Authorization = new("Bot", discordOptions.AppToken);
var instrumentation = sp.GetRequiredService<IInstrumentation>();
var instrumentation = sp.GetService<IInstrumentation>();
var version = instrumentation?.SourceVersion ?? "0.0.0";
var userAgentString = $"DiscordBot (https://github.com/StevanFreeborn/steves-bot, {instrumentation.SourceVersion})";
var userAgentString = $"DiscordBot (https://github.com/StevanFreeborn/steves-bot, {version})";
c.DefaultRequestHeaders.Add("User-Agent", userAgentString);
})
.AddStandardResilienceHandler();