Fixed some aliases and reworked namespaces

This commit is contained in:
Kwoth
2024-04-27 16:03:48 +00:00
parent e0819f760c
commit 812b865add
344 changed files with 3166 additions and 3314 deletions

View File

@@ -1,19 +0,0 @@
namespace NadekoBot.Modules.Xp;
public sealed partial class Xp
{
public class CleanupCommands : CleanupModuleBase
{
private readonly IXpCleanupService _service;
public CleanupCommands(IXpCleanupService service)
{
_service = service;
}
[Cmd]
[OwnerOnly]
public Task DeleteXp()
=> ConfirmActionInternalAsync("Delete Xp", () => _service.DeleteXp());
}
}

View File

@@ -405,7 +405,7 @@ public partial class Xp
.WithOkColor()
.WithDescription(desc);
await ctx.Channel.EmbedAsync(eb);
await EmbedAsync(eb);
}
else
{
@@ -436,7 +436,7 @@ public partial class Xp
foreach (var club in clubs)
embed.AddField($"#{++i} " + club, club.Xp + " xp");
return ctx.Channel.EmbedAsync(embed);
return EmbedAsync(embed);
}
[Cmd]
@@ -452,7 +452,7 @@ public partial class Xp
case ClubRenameResult.Success:
{
var embed = _eb.Create().WithTitle(GetText(strs.club_renamed(clubName))).WithOkColor();
await ctx.Channel.EmbedAsync(embed);
await EmbedAsync(embed);
return;
}
case ClubRenameResult.NameTaken:

View File

@@ -1,8 +1,7 @@
#nullable disable warnings
using NadekoBot.Modules.Xp.Services;
using Nadeko.Bot.Db.Models;
using NadekoBot.Db;
using NadekoBot.Db.Models;
using NadekoBot.Db;
using NadekoBot.Modules.Patronage;
namespace NadekoBot.Modules.Xp;
@@ -65,7 +64,7 @@ public partial class Xp : NadekoModule<XpService>
.AddField(GetText(strs.xpn_setting_global), GetNotifLocationString(globalSetting))
.AddField(GetText(strs.xpn_setting_server), GetNotifLocationString(serverSetting));
await ctx.Channel.EmbedAsync(embed);
await EmbedAsync(embed);
}
[Cmd]
@@ -254,7 +253,7 @@ public partial class Xp : NadekoModule<XpService>
}
}
await ctx.Channel.EmbedAsync(embed);
await EmbedAsync(embed);
}
[Cmd]

View File

@@ -4,7 +4,6 @@ using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Db;
using NadekoBot.Db.Models;
using Nadeko.Bot.Db.Models;
using Newtonsoft.Json;
using SixLabors.Fonts;
using SixLabors.ImageSharp;

View File

@@ -1,7 +0,0 @@
#nullable disable
namespace NadekoBot.Modules.Xp.Extensions;
public static class Extensions
{
}

View File

@@ -1,7 +1,6 @@
#nullable disable
using NadekoBot.Db;
using NadekoBot.Db.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Modules.Xp;

View File

@@ -1,6 +1,5 @@
using LinqToDB;
using NadekoBot.Db.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Modules.Xp;

View File

@@ -1,6 +1,4 @@
#nullable disable warnings
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db.Models;
public class XpShopOwnedItem : DbEntity