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: case PunishmentAction.RemoveRoles:
return botUser.GuildPermissions.ManageRoles; return botUser.GuildPermissions.ManageRoles;
case PunishmentAction.ChatMute: case PunishmentAction.ChatMute:
return botUser.GuildPermissions.ManageRoles; // adds nadeko-mute role return botUser.GuildPermissions.ManageRoles; // adds ellie-mute role
case PunishmentAction.VoiceMute: case PunishmentAction.VoiceMute:
return botUser.GuildPermissions.MuteMembers; return botUser.GuildPermissions.MuteMembers;
case PunishmentAction.AddRole: case PunishmentAction.AddRole:

View file

@ -130,7 +130,7 @@ public class CryptoService : IEService
await _getCryptoLock.WaitAsync(); await _getCryptoLock.WaitAsync();
try try
{ {
var data = await _cache.GetOrAddAsync(new("nadeko:crypto_data"), var data = await _cache.GetOrAddAsync(new("ellie:crypto_data"),
async () => async () =>
{ {
try try

View file

@ -126,7 +126,7 @@ public class SearchesService : IEService
{ {
query = query.Trim().ToLowerInvariant(); query = query.Trim().ToLowerInvariant();
return await _c.GetOrAddAsync(new($"nadeko_weather_{query}"), return await _c.GetOrAddAsync(new($"ellie_weather_{query}"),
async () => await GetWeatherDataFactory(query), async () => await GetWeatherDataFactory(query),
TimeSpan.FromHours(3)); TimeSpan.FromHours(3));
} }
@ -156,7 +156,7 @@ public class SearchesService : IEService
public Task<((string Address, DateTime Time, string TimeZoneName), TimeErrors?)> GetTimeDataAsync(string arg) public Task<((string Address, DateTime Time, string TimeZoneName), TimeErrors?)> GetTimeDataAsync(string arg)
=> GetTimeDataFactory(arg); => GetTimeDataFactory(arg);
//return _cache.GetOrAddCachedDataAsync($"nadeko_time_{arg}", //return _cache.GetOrAddCachedDataAsync($"ellie_time_{arg}",
// GetTimeDataFactory, // GetTimeDataFactory,
// arg, // arg,
// TimeSpan.FromMinutes(1)); // TimeSpan.FromMinutes(1));

View file

@ -196,14 +196,14 @@ public sealed class AiAssistantService
if (guild is not SocketGuild sg) if (guild is not SocketGuild sg)
return false; return false;
var nadekoId = _client.CurrentUser.Id; var ellieId = _client.CurrentUser.Id;
var channel = msg.Channel as ITextChannel; var channel = msg.Channel as ITextChannel;
if (channel is null) if (channel is null)
return false; return false;
var normalMention = $"<@{nadekoId}> "; var normalMention = $"<@{ellieId}> ";
var nickMention = $"<@!{nadekoId}> "; var nickMention = $"<@!{ellieId}> ";
string query; string query;
if (msg.Content.StartsWith(normalMention, StringComparison.InvariantCulture)) if (msg.Content.StartsWith(normalMention, StringComparison.InvariantCulture))
query = msg.Content[normalMention.Length..].Trim(); query = msg.Content[normalMention.Length..].Trim();
@ -293,7 +293,7 @@ public sealed class AiAssistantService
GetCommandErrorResult.RateLimitHit GetCommandErrorResult.RateLimitHit
=> "You've spent your daily requests quota.", => "You've spent your daily requests quota.",
GetCommandErrorResult.NotAuthorized 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 GetCommandErrorResult.Unknown
=> "The service is temporarily unavailable.", => "The service is temporarily unavailable.",
_ => throw new ArgumentOutOfRangeException() _ => throw new ArgumentOutOfRangeException()