Updated Global settings

This commit is contained in:
Toastie (DCS Team) 2024-09-21 14:43:36 +12:00
parent a6939b2220
commit a0bd130a5f
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
6 changed files with 9 additions and 9 deletions

View file

@ -445,7 +445,7 @@ public partial class Xp : EllieModule<XpService>
if (!string.IsNullOrWhiteSpace(item.Desc))
eb.AddField(GetText(strs.desc), item.Desc);
#if GLOBAL_NADEKO
#if GLOBAL_ELLIE
if (key == "default")
eb.WithDescription(GetText(strs.xpshop_website));
#endif

View file

@ -112,7 +112,7 @@ public class XpService : IEService, IReadyExecutor, IExecNoCommand
_excludedServers = new(allGuildConfigs.Where(x => x.XpSettings.ServerExcluded).Select(x => x.GuildId));
#if !GLOBAL_NADEKO
#if !GLOBAL_ELLIE
_client.UserVoiceStateUpdated += Client_OnUserVoiceStateUpdated;
// Scan guilds on startup.
@ -1249,7 +1249,7 @@ public class XpService : IEService, IReadyExecutor, IExecNoCommand
if (template.Club.Icon.Show)
await DrawClubImage(img, stats);
// #if GLOBAL_NADEKO
// #if GLOBAL_ELLIE
await DrawFrame(img, stats.User.UserId);
// #endif
@ -1281,7 +1281,7 @@ public class XpService : IEService, IReadyExecutor, IExecNoCommand
return await _images.GetXpBackgroundImageAsync();
}
// #if GLOBAL_NADEKO
// #if GLOBAL_ELLIE
private async Task DrawFrame(Image<Rgba32> img, ulong userId)
{
var patron = await _ps.GetPatronAsync(userId);

View file

@ -13,7 +13,7 @@ public class DownloadTracker : IEService
/// <returns>Task representing download state</returns>
public async Task EnsureUsersDownloadedAsync(IGuild guild)
{
#if GLOBAL_NADEKO
#if GLOBAL_ELLIE
return;
#endif
await _downloadUsersSemaphore.WaitAsync();

View file

@ -3,12 +3,12 @@
public static class EllieInteractionExtensions
{
public static MessageComponent CreateComponent(
this EllieInteractionBase nadekoInteractionBase
this EllieInteractionBase ellieInteractionBase
)
{
var cb = new ComponentBuilder();
nadekoInteractionBase.AddTo(cb);
ellieInteractionBase.AddTo(cb);
return cb.Build();
}

View file

@ -118,7 +118,7 @@ public static class ServiceCollectionExtensions
foreach (var svc in a.GetTypes()
.Where(type => type.IsClass && types.Any(t => type.IsAssignableTo(t)) && !type.HasAttribute<DIIgnoreAttribute>()
#if GLOBAL_NADEKO
#if GLOBAL_ELLIE
&& !type.HasAttribute<NoPublicBotAttribute>()
#endif
))

View file

@ -229,7 +229,7 @@ public class CommandHandler : IEService, IReadyExecutor, ICommandHandler
{
try
{
#if !GLOBAL_NADEKO
#if !GLOBAL_ELLIE
// track how many messages each user is sending
UserMessagesSent.AddOrUpdate(usrMsg.Author.Id, 1, (_, old) => ++old);
#endif