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

@@ -6,9 +6,9 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
### Added ### Added
- `.shopadd command` You can now sell commands in the shop. The command will execute as if you were the one running it when someone buys it - Added `.shopadd command` You can now sell commands in the shop. The command will execute as if you were the one running it when someone buys it
- type `.h .shopadd` for more info - type `.h .shopadd` for more info
- `.stickyroles` Users leaving the server will have their roles saved to the database and reapplied if they rejoin within 30 days. - Added `.stickyroles` Users leaving the server will have their roles saved to the database and reapplied if they rejoin within 30 days.
- Giveaway commands - Giveaway commands
- `.ga start` starts the giveway with the specified duration and message (prize). You may have up to 5 giveaways on the server at once - `.ga start` starts the giveway with the specified duration and message (prize). You may have up to 5 giveaways on the server at once
- `.ga end <id>` prematurely ends the giveaway and selects a winner - `.ga end <id>` prematurely ends the giveaway and selects a winner
@@ -16,20 +16,22 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
- `.ga list` lists active giveaways on the current server - `.ga list` lists active giveaways on the current server
- `.ga reroll <id>` rerolls the winner on the completed giveaway. This only works for 24 hours after the giveaway has ended, or until the bot restarts. - `.ga reroll <id>` rerolls the winner on the completed giveaway. This only works for 24 hours after the giveaway has ended, or until the bot restarts.
- After the giveaway has started, user join the giveaway by adding a :tada: reaction - After the giveaway has started, user join the giveaway by adding a :tada: reaction
- Selfhosters - Added `.sqlselectcsv` which will return results in a csv file instead of an embed. - Added Todo Commands
- Todo Commands
- `.todo add <name>` - adds a new todo - `.todo add <name>` - adds a new todo
- `.todo delete <id>` - deletes a todo item - `.todo delete <id>` - deletes a todo item
- `.todo done <id>` - completes a todo (marks it with a checkmark) - `.todo done <id>` - completes a todo (marks it with a checkmark)
- `.todo list` - lists all todos - `.todo list` - lists all todos
- `.todo edit <id> <new message>` - edits a todo item message - `.todo edit <id> <new message>` - edits a todo item message
- Todo archive commands - In addition to that, there are also Todo archive commands
- `.todo archive add <name>` - adds all current todos (completed and not completed) to the archived list, your current todo list will become cleared - `.todo archive add <name>` - adds all current todos (completed and not completed) to the archived list, your current todo list will become cleared
- `.todo archive list` - lists all your archived todo lists - `.todo archive list` - lists all your archived todo lists
- `.todo archive show <id>` - shows the todo items from one of your archived lists - `.todo archive show <id>` - shows the todo items from one of your archived lists
- `.todo archive delete <id>` - deletes and archived todo list - `.todo archive delete <id>` - deletes and archived todo list
- `.queufairplay` / `.qfp` (music feature) re-added but it works differently - Added `.queufairplay` / `.qfp` (music feature) re-added but it works differently
- Once you run it, it will reorganize currently queued songs so that they're in a fair order. It has no effect on any subsequently queued songs - Once you run it, it will reorganize currently queued songs so that they're in a fair order. It has no effect on any subsequently queued songs
- Added `.clubrename` command to uh rename your club
- For self-hosters:
- Added `.sqlselectcsv` which will return results in a csv file instead of an embed.
### Changed ### Changed
@@ -37,11 +39,13 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
- You can now target a different channel with .repeat, for example `.repeat #some-other 1h Hello every hour` - You can now target a different channel with .repeat, for example `.repeat #some-other 1h Hello every hour`
- `.cmds <module name>` looks better / simpler - `.cmds <module name>` looks better / simpler
- Cleanup: Removed a lot of obsolete aliases. - Cleanup: Removed a lot of obsolete aliases.
- The bot will now send a discord Reply to every command
- A lot of code cleanup (still a lot to be done) and Quality of Life improvements
### Fixed ### Fixed
- `.feed` should now correctly accept (and show) the message which can be passed as the third parameter - `.feed` should now correctly accept (and show) the message which can be passed as the third parameter
- `.say` will now correctly report errors if the user or the bot don't have sufficent perms to send a message in the targeted channel
### Removed ### Removed

View File

@@ -13,13 +13,13 @@ ProjectSection(SolutionItems) = preProject
.gitlab-ci.yml = .gitlab-ci.yml .gitlab-ci.yml = .gitlab-ci.yml
Dockerfile = Dockerfile Dockerfile = Dockerfile
NuGet.Config = NuGet.Config NuGet.Config = NuGet.Config
migrate.ps1 = migrate.ps1
remove-migration.ps1 = remove-migration.ps1
EndProjectSection EndProjectSection
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NadekoBot", "src\NadekoBot\NadekoBot.csproj", "{45EC1473-C678-4857-A544-07DFE0D0B478}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NadekoBot", "src\NadekoBot\NadekoBot.csproj", "{45EC1473-C678-4857-A544-07DFE0D0B478}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ayu", "ayu", "{6058FEDF-A318-4CD4-8F04-A7E8E7EC8874}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NadekoBot.Voice", "src\ayu\NadekoBot.Voice\NadekoBot.Voice.csproj", "{2F4CF6D6-0C2F-4944-B204-9508CDA53195}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ayu.Discord.Voice", "src\ayu\Ayu.Discord.Voice\Ayu.Discord.Voice.csproj", "{2F4CF6D6-0C2F-4944-B204-9508CDA53195}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NadekoBot.Tests", "src\NadekoBot.Tests\NadekoBot.Tests.csproj", "{DB448DD4-C97F-40E9-8BD3-F605FF1FF833}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NadekoBot.Tests", "src\NadekoBot.Tests\NadekoBot.Tests.csproj", "{DB448DD4-C97F-40E9-8BD3-F605FF1FF833}"
EndProject EndProject
@@ -86,13 +86,12 @@ Global
EndGlobalSection EndGlobalSection
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{45EC1473-C678-4857-A544-07DFE0D0B478} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {45EC1473-C678-4857-A544-07DFE0D0B478} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2}
{6058FEDF-A318-4CD4-8F04-A7E8E7EC8874} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2}
{2F4CF6D6-0C2F-4944-B204-9508CDA53195} = {6058FEDF-A318-4CD4-8F04-A7E8E7EC8874}
{DB448DD4-C97F-40E9-8BD3-F605FF1FF833} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {DB448DD4-C97F-40E9-8BD3-F605FF1FF833} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2}
{AE9B7F8C-81D7-4401-83A3-643B38258374} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {AE9B7F8C-81D7-4401-83A3-643B38258374} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2}
{3BC82CFE-BEE7-451F-986B-17EDD1570C4F} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {3BC82CFE-BEE7-451F-986B-17EDD1570C4F} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2}
{E685977E-31A4-46F4-A5D7-4E3E39E82E43} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {E685977E-31A4-46F4-A5D7-4E3E39E82E43} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2}
{92770AF3-83EE-49F1-A0BB-79124D19A13D} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {92770AF3-83EE-49F1-A0BB-79124D19A13D} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2}
{2F4CF6D6-0C2F-4944-B204-9508CDA53195} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5F3F555C-855F-4BE8-B526-D062D3E8ACA4} SolutionGuid = {5F3F555C-855F-4BE8-B526-D062D3E8ACA4}

View File

@@ -1,5 +1,5 @@
using Nadeko.Common; using Nadeko.Common;
using Nadeko.Bot.Db.Models; using NadekoBot.Db.Models;
using NUnit.Framework; using NUnit.Framework;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@@ -6,11 +6,12 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="NUnit" Version="4.1.0" /> <PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" /> <PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\NadekoBot\NadekoBot.csproj" /> <ProjectReference Include="..\NadekoBot\NadekoBot.csproj" />
</ItemGroup> </ItemGroup>

View File

@@ -1,22 +1,10 @@
#nullable disable #nullable disable
using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Nadeko.Bot.Db; using NadekoBot.Db;
using NadekoBot.Common.Configs; using NadekoBot.Common.Configs;
using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Db; using NadekoBot.Db.Models;
using NadekoBot.Modules.Administration;
using NadekoBot.Modules.Gambling;
using NadekoBot.Modules.Help;
using NadekoBot.Modules.Music;
using NadekoBot.Modules.NadekoExpressions;
using NadekoBot.Modules.Patronage;
using NadekoBot.Modules.Permissions;
using NadekoBot.Modules.Searches;
using NadekoBot.Modules.Utility;
using NadekoBot.Modules.Xp;
using Nadeko.Bot.Db.Models;
using Ninject; using Ninject;
using Ninject.Planning; using Ninject.Planning;
using System.Collections.Immutable; using System.Collections.Immutable;
@@ -98,12 +86,6 @@ public sealed class Bot : IBot
_loadedAssemblies = new[] _loadedAssemblies = new[]
{ {
typeof(Bot).Assembly, // bot typeof(Bot).Assembly, // bot
typeof(Creds).Assembly, // bot.common
// modules
typeof(NadekoExpressions).Assembly, typeof(Administration).Assembly, typeof(Gambling).Assembly,
typeof(Help).Assembly, typeof(Music).Assembly, typeof(Patronage).Assembly, typeof(Permissions).Assembly,
typeof(Searches).Assembly, typeof(Utility).Assembly, typeof(Xp).Assembly,
}; };
} }
@@ -145,6 +127,7 @@ public sealed class Bot : IBot
svcs.AddSingleton<IConfigSeria, YamlSeria>(); svcs.AddSingleton<IConfigSeria, YamlSeria>();
svcs.AddSingleton<IMemoryCache, MemoryCache>(new MemoryCache(new MemoryCacheOptions())); svcs.AddSingleton<IMemoryCache, MemoryCache>(new MemoryCache(new MemoryCacheOptions()));
svcs.AddSingleton<IBehaviorHandler, BehaviorHandler>(); svcs.AddSingleton<IBehaviorHandler, BehaviorHandler>();
svcs.AddSingleton<ILocalization, Localization>();
foreach (var a in _loadedAssemblies) foreach (var a in _loadedAssemblies)

View File

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

View File

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

View File

@@ -2,8 +2,6 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using NadekoBot.Db.Models; using NadekoBot.Db.Models;
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db; namespace NadekoBot.Db;
public static class GuildConfigExtensions public static class GuildConfigExtensions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,22 @@
namespace Nadeko.Bot.Db; namespace NadekoBot.Db;
public enum ActivityType public enum DbActivityType
{ {
/// <summary>The user is playing a game.</summary>
Playing,
/// <summary>The user is streaming online.</summary>
Streaming,
/// <summary>The user is listening to a song.</summary>
Listening,
/// <summary>The user is watching some form of media.</summary>
Watching,
/// <summary>The user has set a custom status.</summary>
CustomStatus,
/// <summary>The user is competing in a game.</summary>
Competing,
} }

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Bot.Db; namespace NadekoBot.Db;
[Flags] [Flags]
public enum GuildPerm : ulong public enum GuildPerm : ulong

View File

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

View File

@@ -1,5 +1,3 @@
using Nadeko.Bot.Db.Models;
namespace NadekoBot.Db.Models; namespace NadekoBot.Db.Models;
public class AutoPublishChannel : DbEntity public class AutoPublishChannel : DbEntity

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,10 +1,8 @@
#nullable disable #nullable disable
using Nadeko.Bot.Db; namespace NadekoBot.Db.Models;
namespace Nadeko.Bot.Db.Models;
public class RotatingPlayingStatus : DbEntity public class RotatingPlayingStatus : DbEntity
{ {
public string Status { get; set; } public string Status { get; set; }
public ActivityType Type { get; set; } public DbActivityType Type { get; set; }
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,4 @@
using Nadeko.Bot.Db.Models; namespace NadekoBot.Db.Models;
namespace NadekoBot.Db.Models;
public class BankUser : DbEntity public class BankUser : DbEntity
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using NadekoBot.Db.Models; using NadekoBot.Db.Models;
namespace Nadeko.Bot.Db; namespace NadekoBot.Db;
public sealed class MysqlContext : NadekoContext public sealed class MysqlContext : NadekoContext
{ {

View File

@@ -2,11 +2,10 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using NadekoBot.Db.Models; using NadekoBot.Db.Models;
using Nadeko.Bot.Db.Models;
// ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable UnusedAutoPropertyAccessor.Global
namespace Nadeko.Bot.Db; namespace NadekoBot.Db;
public abstract class NadekoContext : DbContext public abstract class NadekoContext : DbContext
{ {

View File

@@ -2,7 +2,7 @@
using LinqToDB.EntityFrameworkCore; using LinqToDB.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Nadeko.Bot.Db; namespace NadekoBot.Db;
public sealed class NadekoDbService : DbService public sealed class NadekoDbService : DbService
{ {

View File

@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Nadeko.Bot.Db; namespace NadekoBot.Db;
public sealed class PostgreSqlContext : NadekoContext public sealed class PostgreSqlContext : NadekoContext
{ {

View File

@@ -1,7 +1,7 @@
using Microsoft.Data.Sqlite; using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
namespace Nadeko.Bot.Db; namespace NadekoBot.Db;
public sealed class SqliteContext : NadekoContext public sealed class SqliteContext : NadekoContext
{ {

View File

@@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Nadeko.Bot.Db; using NadekoBot.Db;
#nullable disable #nullable disable

View File

@@ -1,5 +1,4 @@
using System; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable #nullable disable

View File

@@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Nadeko.Bot.Db; using NadekoBot.Db;
#nullable disable #nullable disable

View File

@@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Nadeko.Bot.Db; using NadekoBot.Db;
#nullable disable #nullable disable

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,4 @@
using System; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable #nullable disable

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,4 @@
using System; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable #nullable disable

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,4 @@
using System; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable #nullable disable

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Nadeko.Bot.Db; using NadekoBot.Db;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable #nullable disable

View File

@@ -1,5 +1,4 @@
using System; using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable #nullable disable

View File

@@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Nadeko.Bot.Db; using NadekoBot.Db;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable #nullable disable

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