Updated some namespaces, finished some todos. v5 should be cancelled probably as the code is too intertwined to make it modular

This commit is contained in:
Kwoth
2023-11-11 05:22:52 +00:00
parent a28be0d343
commit bc77783820
224 changed files with 308 additions and 317 deletions

View File

@@ -2,7 +2,7 @@
using LinqToDB.Common;
using LinqToDB.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database;
namespace NadekoBot.Services;

View File

@@ -1,8 +1,6 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Db;
using NadekoBot.Db.Models;
// todo fix these namespaces. It should only be Nadeko.Bot.Db
using NadekoBot.Services.Database;
namespace NadekoBot.Extensions;

View File

@@ -12,7 +12,7 @@ global using Nadeko.Common; // new project
global using NadekoBot.Common; // old + nadekobot specific things
global using NadekoBot.Common.Attributes;
global using NadekoBot.Extensions;
// global using Nadeko.Snake;
// global using Nadeko.Medusa;
// discord
global using Discord;

View File

@@ -1,5 +1,5 @@
#nullable disable
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot;

View File

@@ -1,4 +1,4 @@
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Common;

View File

@@ -1,6 +1,6 @@
using System.Globalization;
namespace Nadeko.Medusa;
namespace Nadeko.Common.Medusa;
public interface IMedusaLoaderService
{

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Medusa;
namespace Nadeko.Common.Medusa;
public enum MedusaLoadResult
{

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Medusa;
namespace Nadeko.Common.Medusa;
public enum MedusaUnloadResult
{

View File

@@ -34,6 +34,8 @@
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="..\NadekoBot\data\strings\responses\responses.en-US.json" />
<AdditionalFiles Include="..\NadekoBot\data\strings\responses\responses.en-US.json">
<Link>responses.en-US.json</Link>
</AdditionalFiles>
</ItemGroup>
</Project>

View File

@@ -79,9 +79,10 @@ public abstract class NadekoModule : ModuleBase
public async Task<bool> PromptUserConfirmAsync(IEmbedBuilder embed)
{
embed.WithPendingColor().WithFooter("yes/no");
embed.WithPendingColor()
.WithFooter("yes/no");
var msg = await ctx.Channel.EmbedAsync(embed);
var msg = await MessageChannelExtensions.EmbedAsync(ctx.Channel, embed);
try
{
var input = await GetUserInputAsync(ctx.User.Id, ctx.Channel.Id);

View File

@@ -43,8 +43,8 @@ public class CommandHandler : INService, IReadyExecutor, ICommandHandler
// InteractionService interactions,
IServiceProvider services)
{
_client = client;
_commandService = commandService;
_client = client;
_commandService = commandService;
_bss = bss;
_bot = bot;
_behaviorHandler = behaviorHandler;

View File

@@ -1,7 +1,7 @@
using LinqToDB;
using LinqToDB.EntityFrameworkCore;
using NadekoBot.Db.Models;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Services.Currency;

View File

@@ -2,7 +2,7 @@ using LinqToDB;
using LinqToDB.EntityFrameworkCore;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Services.Currency;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Services;

View File

@@ -1,5 +1,5 @@
#nullable disable
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Modules.Utility.Services;

View File

@@ -5,7 +5,7 @@ using LinqToDB.EntityFrameworkCore;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Db;
using NadekoBot.Db.Models;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Modules.Permissions.Services;

View File

@@ -1,4 +1,5 @@
using CommandLine;
using Nadeko.Common.Medusa;
namespace NadekoBot.Common;
@@ -9,7 +10,7 @@ public sealed class CommandsUtilityService : ICommandsUtilityService, INService
private readonly DiscordPermOverrideService _dpos;
private readonly IEmbedBuilderService _eb;
private readonly ILocalization _loc;
private readonly Nadeko.Medusa.IMedusaLoaderService _medusae;
private readonly IMedusaLoaderService _medusae;
public CommandsUtilityService(
CommandHandler ch,
@@ -17,7 +18,7 @@ public sealed class CommandsUtilityService : ICommandsUtilityService, INService
DiscordPermOverrideService dpos,
IEmbedBuilderService eb,
ILocalization loc,
Nadeko.Medusa.IMedusaLoaderService medusae)
IMedusaLoaderService medusae)
{
_ch = ch;
_strings = strings;
@@ -46,10 +47,9 @@ public sealed class CommandsUtilityService : ICommandsUtilityService, INService
if (reqs.Any())
em.AddField(GetText(strs.requires, guild), string.Join("\n", reqs));
em.AddField(_strings.GetText(strs.usage),
string.Join("\n", com.RealRemarksArr(_strings, _medusae, culture, prefix).Map(arg => Format.Code(arg))))
.WithFooter(GetText(strs.module(com.Module.GetTopLevelModule().Name), guild))
.WithOkColor();
Extensions.Extensions.WithOkColor(em.AddField(_strings.GetText(strs.usage),
string.Join("\n", com.RealRemarksArr(_strings, _medusae, culture, prefix).Map(arg => Format.Code(arg))))
.WithFooter(GetText(strs.module(com.Module.GetTopLevelModule().Name), guild)));
var opt = GetNadekoOptionType(com.Attributes);
if (opt is not null)

View File

@@ -1,7 +1,7 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Services;

View File

@@ -3,7 +3,7 @@ using System.Diagnostics;
using System.Globalization;
using System.Text.Json;
using System.Text.RegularExpressions;
using Nadeko.Medusa;
using Nadeko.Common.Medusa;
namespace NadekoBot.Extensions;

View File

@@ -1,3 +1,4 @@
namespace NadekoBot.Extensions;
public static class MessageChannelExtensions
@@ -91,10 +92,6 @@ public static class MessageChannelExtensions
return ch.EmbedAsync(builder, inter: inter);
}
// regular send overloads
public static Task<IUserMessage> SendErrorAsync(this IMessageChannel ch, IEmbedBuilderService eb, string text)
=> ch.SendAsync(eb, text, MsgType.Error);
public static Task<IUserMessage> SendConfirmAsync(this IMessageChannel ch, IEmbedBuilderService eb, string text)
=> ch.SendAsync(eb, text, MsgType.Ok);
@@ -147,6 +144,10 @@ public static class MessageChannelExtensions
string? url = null,
string? footer = null)
=> ch.SendAsync(eb, MsgType.Error, title, text, url, footer);
// regular send overloads
public static Task<IUserMessage> SendErrorAsync(this IMessageChannel ch, IEmbedBuilderService eb, string text)
=> ch.SendAsync(eb, text, MsgType.Error);
public static Task SendPaginatedConfirmAsync(
this ICommandContext ctx,

View File

@@ -1,4 +1,5 @@
namespace NadekoBot.Extensions;

namespace NadekoBot.Extensions;
public static class SocketMessageComponentExtensions
{

View File

@@ -1,7 +1,7 @@
#nullable disable
using LinqToDB.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db;

View File

@@ -1,6 +1,6 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db;

View File

@@ -1,8 +1,8 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using NadekoBot.Db.Models;
using NadekoBot.Services.Database;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db;

View File

@@ -1,7 +1,7 @@
#nullable disable
using LinqToDB;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db;

View File

@@ -1,6 +1,6 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db;
@@ -29,10 +29,8 @@ public static class QuoteExtensions
ulong guildId,
string keyword)
{
// todo figure shuffle out
return (await quotes.AsQueryable().Where(q => q.GuildId == guildId && q.Keyword == keyword).ToListAsync())
.Shuffle()
.FirstOrDefault();
return (await quotes.AsQueryable().Where(q => q.GuildId == guildId && q.Keyword == keyword).ToArrayAsync())
.RandomOrDefault();
}
public static async Task<Quote> SearchQuoteKeywordTextAsync(
@@ -41,15 +39,13 @@ public static class QuoteExtensions
string keyword,
string text)
{
var rngk = new NadekoRandom();
return (await quotes.AsQueryable()
.Where(q => q.GuildId == guildId
&& (keyword == null || q.Keyword == keyword)
&& (EF.Functions.Like(q.Text.ToUpper(), $"%{text.ToUpper()}%")
|| EF.Functions.Like(q.AuthorName, text)))
.ToListAsync())
.OrderBy(_ => rngk.Next())
.FirstOrDefault();
.ToArrayAsync())
.RandomOrDefault();
}
public static void RemoveAllByKeyword(this DbSet<Quote> quotes, ulong guildId, string keyword)

View File

@@ -1,6 +1,6 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db;

View File

@@ -1,6 +1,6 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db;

View File

@@ -2,8 +2,8 @@
using LinqToDB;
using LinqToDB.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db;

View File

@@ -1,6 +1,6 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db;

View File

@@ -7,12 +7,11 @@
//
// // nadekobot
global using NadekoBot;
global using NadekoBot.Services;
global using Nadeko.Common;
// global using NadekoBot.Common; // old + nadekobot specific things
// global using NadekoBot.Common.Attributes;
// global using NadekoBot.Extensions;
// global using Nadeko.Snake;
// global using Nadeko.Medusa;
// // discord
// global using Discord;

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class AutoCommand : DbEntity
{

View File

@@ -1,4 +1,4 @@
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db.Models;

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class AutoTranslateChannel : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class AutoTranslateUser : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class BlacklistEntry : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class CommandAlias : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class CommandCooldown : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class CurrencyTransaction : DbEntity
{

View File

@@ -1,7 +1,7 @@
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class DelMsgOnCmdChannel : DbEntity
{

View File

@@ -1,7 +1,7 @@
#nullable disable
using Nadeko.Bot.Db;
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class DiscordPermOverride : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db.Models;

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class CurrencyEvent
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class FeedSub : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db.Models;

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class GCChannelId : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class GamblingStats : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class GroupName : DbEntity
{

View File

@@ -1,7 +1,7 @@
#nullable disable
using NadekoBot.Db.Models;
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class GuildConfig : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class IgnoredLogItem : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class IgnoredVoicePresenceChannel : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class ImageOnlyChannel : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class LogSetting : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class NsfwBlacklistedTag : DbEntity
{

View File

@@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
[DebuggerDisplay("{PrimaryTarget}{SecondaryTarget} {SecondaryTargetName} {State} {PrimaryTargetId}")]
public class Permissionv2 : DbEntity, IIndexed

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class PlantedCurrency : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class PlaylistSong : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class Poll : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class PollVote : DbEntity
{

View File

@@ -1,7 +1,7 @@
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class ReactionRoleV2 : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class Reminder : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class Repeater
{

View File

@@ -1,7 +1,7 @@
#nullable disable
using Nadeko.Bot.Db;
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class RotatingPlayingStatus : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class SelfAssignedRole : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public enum ShopEntryType
{

View File

@@ -1,5 +1,5 @@
#nullable disable
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db.Models;

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class StreamRoleSettings : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class VcRoleInfo : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class AntiAltSetting
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
// todo db required, nullable?

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class AntiSpamIgnore : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class AntiSpamSetting : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
using System.ComponentModel.DataAnnotations;
namespace NadekoBot.Db.Models;

View File

@@ -1,4 +1,4 @@
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db.Models;

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class NadekoExpression : DbEntity
{

View File

@@ -1,7 +1,7 @@
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class Quote : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class FilterChannelId : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class FilterLinksChannelId : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class FilteredWord : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class BanTemplate : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class MutedUserId : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public enum PunishmentAction
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public enum WarnExpireAction
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class Warning : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class WarningPunishment : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class SlowmodeIgnoredRole : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class SlowmodeIgnoredUser : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class RewardedUser : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class UnbanTimer : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class UnmuteTimer : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class UnroleTimer : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class UserXpStats : DbEntity
{

View File

@@ -1,5 +1,5 @@
#nullable disable
namespace NadekoBot.Services.Database.Models;
namespace Nadeko.Bot.Db.Models;
public class XpSettings : DbEntity
{

View File

@@ -1,7 +1,7 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using NadekoBot.Db;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Modules.Administration.Services;

View File

@@ -1,5 +1,5 @@
#nullable disable
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
using System.Net;
using System.Threading.Channels;
using LinqToDB;

View File

@@ -3,7 +3,7 @@ using LinqToDB;
using LinqToDB.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Db.Models;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Modules.Administration.Services;

View File

@@ -13,7 +13,7 @@ global using Nadeko.Common; // new project
global using NadekoBot.Common; // old + nadekobot specific things
global using NadekoBot.Common.Attributes;
global using NadekoBot.Extensions;
// global using Nadeko.Snake;
// global using Nadeko.Medusa;
// discord
global using Discord;

View File

@@ -1,6 +1,6 @@
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Db;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
using System.Threading.Channels;
namespace NadekoBot.Services;

View File

@@ -1,4 +1,4 @@
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Services;

View File

@@ -4,7 +4,7 @@ using Microsoft.Extensions.Caching.Memory;
using NadekoBot.Common.ModuleBehaviors;
using System.Net;
using System.Threading.Channels;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Modules.Administration.Services;

Some files were not shown because too many files have changed in this diff Show More