I found more and I hate everything

I am slowly losing my sanity
This commit is contained in:
Toastie (DCS Team) 2024-07-08 01:34:34 +12:00
parent e100526d80
commit 187c56e8c7
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
4 changed files with 8 additions and 8 deletions

View file

@ -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:

View file

@ -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

View file

@ -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));

View file

@ -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 <https://patreon.com/nadekobot>",
=> "In order to use this command you have to have a 5$ or higher subscription at <https://patreon.com/elliebot>",
GetCommandErrorResult.Unknown
=> "The service is temporarily unavailable.",
_ => throw new ArgumentOutOfRangeException()