From a4adabb3ea3853cbec6bfda4543a3f8e9a491ffa Mon Sep 17 00:00:00 2001 From: Toastie Date: Wed, 26 Jun 2024 21:23:06 +1200 Subject: [PATCH] Updated common files again --- .../Replacements/Impl/ReplacementRegistrator.default.cs | 2 +- src/EllieBot/_common/Sender/MessageSenderService.cs | 8 ++++---- src/EllieBot/_common/Settings/ConfigServiceBase.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/EllieBot/_common/Replacements/Impl/ReplacementRegistrator.default.cs b/src/EllieBot/_common/Replacements/Impl/ReplacementRegistrator.default.cs index acecd9e..d42bba6 100644 --- a/src/EllieBot/_common/Replacements/Impl/ReplacementRegistrator.default.cs +++ b/src/EllieBot/_common/Replacements/Impl/ReplacementRegistrator.default.cs @@ -95,7 +95,7 @@ public sealed partial class ReplacementPatternStore Register(_rngRegex, match => { - var rng = new NadekoRandom(); + var rng = new EllieRandom(); if (!int.TryParse(match.Groups["from"].ToString(), out var from)) from = 0; if (!int.TryParse(match.Groups["to"].ToString(), out var to)) diff --git a/src/EllieBot/_common/Sender/MessageSenderService.cs b/src/EllieBot/_common/Sender/MessageSenderService.cs index c6e34ad..f91f1ab 100644 --- a/src/EllieBot/_common/Sender/MessageSenderService.cs +++ b/src/EllieBot/_common/Sender/MessageSenderService.cs @@ -33,15 +33,15 @@ public sealed class MessageSenderService : IMessageSenderService, IEService => new ResponseBuilder(_bs, _bcs, _client) .Channel(smc.Channel); - public NadekoEmbedBuilder CreateEmbed() - => new NadekoEmbedBuilder(_bcs); + public EllieEmbedBuilder CreateEmbed() + => new EllieEmbedBuilder(_bcs); } -public class NadekoEmbedBuilder : EmbedBuilder +public class EllieEmbedBuilder : EmbedBuilder { private readonly BotConfig _bc; - public NadekoEmbedBuilder(BotConfigService bcs) + public EllieEmbedBuilder(BotConfigService bcs) { _bc = bcs.Data; } diff --git a/src/EllieBot/_common/Settings/ConfigServiceBase.cs b/src/EllieBot/_common/Settings/ConfigServiceBase.cs index ab4a15f..df6a0b9 100644 --- a/src/EllieBot/_common/Settings/ConfigServiceBase.cs +++ b/src/EllieBot/_common/Settings/ConfigServiceBase.cs @@ -3,7 +3,7 @@ using EllieBot.Common.Yml; using System.Linq.Expressions; using System.Reflection; -namespace NadekoBot.Services; +namespace EllieBot.Services; /// /// Base service for all settings services