diff --git a/src/EllieBot/Modules/Administration/UserPunish/UserPunishService.cs b/src/EllieBot/Modules/Administration/UserPunish/UserPunishService.cs index 5847bea..cdc9900 100644 --- a/src/EllieBot/Modules/Administration/UserPunish/UserPunishService.cs +++ b/src/EllieBot/Modules/Administration/UserPunish/UserPunishService.cs @@ -228,7 +228,7 @@ public class UserPunishService : IEService, IReadyExecutor case PunishmentAction.RemoveRoles: return botUser.GuildPermissions.ManageRoles; case PunishmentAction.ChatMute: - return botUser.GuildPermissions.ManageRoles; // adds nadeko-mute role + return botUser.GuildPermissions.ManageRoles; // adds ellie-mute role case PunishmentAction.VoiceMute: return botUser.GuildPermissions.MuteMembers; case PunishmentAction.AddRole: diff --git a/src/EllieBot/Modules/Searches/Crypto/CryptoService.cs b/src/EllieBot/Modules/Searches/Crypto/CryptoService.cs index a28f96e..146dac3 100644 --- a/src/EllieBot/Modules/Searches/Crypto/CryptoService.cs +++ b/src/EllieBot/Modules/Searches/Crypto/CryptoService.cs @@ -130,7 +130,7 @@ public class CryptoService : IEService await _getCryptoLock.WaitAsync(); try { - var data = await _cache.GetOrAddAsync(new("nadeko:crypto_data"), + var data = await _cache.GetOrAddAsync(new("ellie:crypto_data"), async () => { try diff --git a/src/EllieBot/Modules/Searches/SearchesService.cs b/src/EllieBot/Modules/Searches/SearchesService.cs index 0a9431e..f5e3be4 100644 --- a/src/EllieBot/Modules/Searches/SearchesService.cs +++ b/src/EllieBot/Modules/Searches/SearchesService.cs @@ -126,7 +126,7 @@ public class SearchesService : IEService { query = query.Trim().ToLowerInvariant(); - return await _c.GetOrAddAsync(new($"nadeko_weather_{query}"), + return await _c.GetOrAddAsync(new($"ellie_weather_{query}"), async () => await GetWeatherDataFactory(query), TimeSpan.FromHours(3)); } @@ -156,7 +156,7 @@ public class SearchesService : IEService public Task<((string Address, DateTime Time, string TimeZoneName), TimeErrors?)> GetTimeDataAsync(string arg) => GetTimeDataFactory(arg); - //return _cache.GetOrAddCachedDataAsync($"nadeko_time_{arg}", + //return _cache.GetOrAddCachedDataAsync($"ellie_time_{arg}", // GetTimeDataFactory, // arg, // TimeSpan.FromMinutes(1)); diff --git a/src/EllieBot/Modules/Utility/Ai/AiAssistantService.cs b/src/EllieBot/Modules/Utility/Ai/AiAssistantService.cs index d57e48e..612247b 100644 --- a/src/EllieBot/Modules/Utility/Ai/AiAssistantService.cs +++ b/src/EllieBot/Modules/Utility/Ai/AiAssistantService.cs @@ -196,14 +196,14 @@ public sealed class AiAssistantService if (guild is not SocketGuild sg) return false; - var nadekoId = _client.CurrentUser.Id; + var ellieId = _client.CurrentUser.Id; var channel = msg.Channel as ITextChannel; if (channel is null) return false; - var normalMention = $"<@{nadekoId}> "; - var nickMention = $"<@!{nadekoId}> "; + var normalMention = $"<@{ellieId}> "; + var nickMention = $"<@!{ellieId}> "; string query; if (msg.Content.StartsWith(normalMention, StringComparison.InvariantCulture)) query = msg.Content[normalMention.Length..].Trim(); @@ -293,7 +293,7 @@ public sealed class AiAssistantService GetCommandErrorResult.RateLimitHit => "You've spent your daily requests quota.", GetCommandErrorResult.NotAuthorized - => "In order to use this command you have to have a 5$ or higher subscription at ", + => "In order to use this command you have to have a 5$ or higher subscription at ", GetCommandErrorResult.Unknown => "The service is temporarily unavailable.", _ => throw new ArgumentOutOfRangeException()