Massive cleanup

- Removed GuildConfigs repository, moved to extensions
- Moved StreamSettings extension to GuildConfig extensions
- namespace NadekoBot.Core has been simplified to NadekoBot in many places (more to come)
- Replaced some raw delete queries with simple linqtodb queries
This commit is contained in:
Kwoth
2021-06-19 03:32:48 +02:00
parent c7ff982ec1
commit 15dac7e3ed
191 changed files with 563 additions and 571 deletions

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using NadekoBot.Common;
using NadekoBot.Core.Modules.Gambling.Common.AnimalRacing;
using NadekoBot.Modules.Gambling.Common.AnimalRacing;
using NadekoBot.Core.Services;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Extensions;

View File

@@ -1,7 +1,7 @@
using CommandLine;
using NadekoBot.Core.Common;
namespace NadekoBot.Core.Modules.Gambling.Common.AnimalRacing
namespace NadekoBot.Modules.Gambling.Common.AnimalRacing
{
public class RaceOptions : INadekoCommandOptions
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Linq;
namespace NadekoBot.Core.Modules.Gambling.Common
namespace NadekoBot.Modules.Gambling.Common
{
public class Betroll
{

View File

@@ -8,7 +8,7 @@ using NadekoBot.Core.Services;
using NadekoBot.Modules.Gambling.Common;
using Serilog;
namespace NadekoBot.Core.Modules.Gambling.Common.Blackjack
namespace NadekoBot.Modules.Gambling.Common.Blackjack
{
public class Blackjack
{

View File

@@ -4,7 +4,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
namespace NadekoBot.Core.Modules.Gambling.Common.Blackjack
namespace NadekoBot.Modules.Gambling.Common.Blackjack
{
public abstract class Player
{

View File

@@ -3,7 +3,7 @@ using NadekoBot.Common;
using System.Collections.Generic;
using System.Linq;
namespace NadekoBot.Core.Modules.Gambling.Common
namespace NadekoBot.Modules.Gambling.Common
{
public class CurrencyRaffleGame
{

View File

@@ -1,7 +1,7 @@
using CommandLine;
using NadekoBot.Core.Common;
namespace NadekoBot.Core.Modules.Gambling.Common.Events
namespace NadekoBot.Modules.Gambling.Common.Events
{
public class EventOptions : INadekoCommandOptions
{

View File

@@ -13,7 +13,7 @@ using System.Threading;
using System.Threading.Tasks;
using Serilog;
namespace NadekoBot.Core.Modules.Gambling.Common.Events
namespace NadekoBot.Modules.Gambling.Common.Events
{
public class GameStatusEvent : ICurrencyEvent
{

View File

@@ -11,10 +11,10 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using NadekoBot.Core.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Services;
using Serilog;
namespace NadekoBot.Core.Modules.Gambling.Common.Events
namespace NadekoBot.Modules.Gambling.Common.Events
{
public class ReactionEvent : ICurrencyEvent
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using NadekoBot.Common.Yml;
namespace NadekoBot.Core.Modules.Gambling.Common
namespace NadekoBot.Modules.Gambling.Common
{
public sealed class GamblingConfig
{

View File

@@ -3,9 +3,9 @@ using Discord;
using NadekoBot.Core.Services;
using NadekoBot.Modules;
using System.Threading.Tasks;
using NadekoBot.Core.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Services;
namespace NadekoBot.Core.Modules.Gambling.Common
namespace NadekoBot.Modules.Gambling.Common
{
public abstract class GamblingModule<TService> : NadekoModule<TService>
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Modules.Gambling.Common
namespace NadekoBot.Modules.Gambling.Common
{
public class Payout
{

View File

@@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace NadekoBot.Core.Modules.Gambling.Common
namespace NadekoBot.Modules.Gambling.Common
{
public class RollDuelGame
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Modules.Gambling.Common.Waifu
namespace NadekoBot.Modules.Gambling.Common.Waifu
{
public enum AffinityTitle
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Modules.Gambling.Common.Waifu
namespace NadekoBot.Modules.Gambling.Common.Waifu
{
public enum ClaimTitle
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Modules.Gambling.Common.Waifu
namespace NadekoBot.Modules.Gambling.Common.Waifu
{
public enum DivorceResult
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Modules.Gambling.Common.Waifu
namespace NadekoBot.Modules.Gambling.Common.Waifu
{
public enum WaifuClaimResult
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Modules.Gambling.Common.Waifu
namespace NadekoBot.Modules.Gambling.Common.Waifu
{
public struct WaifuProfileTitle
{

View File

@@ -1,6 +1,6 @@
using System.Threading.Tasks;
using NadekoBot.Common;
using NadekoBot.Core.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Core.Services;
namespace NadekoBot.Modules.Gambling.Common.WheelOfFortune