mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
Fixed some aliases and reworked namespaces
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
@@ -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:
|
||||
|
@@ -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]
|
||||
|
@@ -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;
|
||||
|
@@ -1,7 +0,0 @@
|
||||
#nullable disable
|
||||
namespace NadekoBot.Modules.Xp.Extensions;
|
||||
|
||||
public static class Extensions
|
||||
{
|
||||
|
||||
}
|
@@ -1,7 +1,6 @@
|
||||
#nullable disable
|
||||
using NadekoBot.Db;
|
||||
using NadekoBot.Db.Models;
|
||||
using Nadeko.Bot.Db.Models;
|
||||
|
||||
namespace NadekoBot.Modules.Xp;
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
using LinqToDB;
|
||||
using NadekoBot.Db.Models;
|
||||
using Nadeko.Bot.Db.Models;
|
||||
|
||||
namespace NadekoBot.Modules.Xp;
|
||||
|
||||
|
@@ -1,6 +1,4 @@
|
||||
#nullable disable warnings
|
||||
using Nadeko.Bot.Db.Models;
|
||||
|
||||
namespace NadekoBot.Db.Models;
|
||||
|
||||
public class XpShopOwnedItem : DbEntity
|
||||
|
Reference in New Issue
Block a user