One of the last major cleanups. All NadekoBot.Core.* namespaces renamed to NadekoBot.*

This commit is contained in:
Kwoth
2021-06-20 13:03:00 +02:00
parent 44fdd4ff23
commit 49f9b96755
451 changed files with 19253 additions and 19287 deletions

View File

@@ -4,7 +4,7 @@ using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using Discord.Commands;
using NadekoBot.Core.Services.Impl;
using NadekoBot.Services;
namespace NadekoBot.Common.Attributes
{
[AttributeUsage(AttributeTargets.Method)]

View File

@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using Discord.Commands;
using NadekoBot.Core.Services.Impl;
using NadekoBot.Services;
namespace NadekoBot.Common.Attributes
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using Discord.Commands;
using NadekoBot.Core.Services.Impl;
using NadekoBot.Services;
namespace NadekoBot.Common.Attributes
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;
using Discord.Commands;
using NadekoBot.Core.Services;
using NadekoBot.Services;
using Microsoft.Extensions.DependencyInjection;
namespace NadekoBot.Common.Attributes

View File

@@ -1,10 +1,10 @@
using Discord.Commands;
using NadekoBot.Core.Services;
using NadekoBot.Services;
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
namespace NadekoBot.Core.Common.Attributes
namespace NadekoBot.Common.Attributes
{
[AttributeUsage(AttributeTargets.Method)]
public sealed class RatelimitAttribute : PreconditionAttribute

View File

@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using Discord.Commands;
using NadekoBot.Core.Services.Impl;
using NadekoBot.Services;
using Newtonsoft.Json;
namespace NadekoBot.Common.Attributes

View File

@@ -1,6 +1,6 @@
using Newtonsoft.Json;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class CmdStrings
{

View File

@@ -1,7 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Common.Collections
{

View File

@@ -5,7 +5,7 @@ using SixLabors.ImageSharp.PixelFormats;
using YamlDotNet.Core;
using YamlDotNet.Serialization;
namespace NadekoBot.Core.Common.Configs
namespace NadekoBot.Common.Configs
{
public sealed class BotConfig
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Common.Configs
namespace NadekoBot.Common.Configs
{
/// <summary>
/// Base interface for available config serializers

View File

@@ -1,11 +1,11 @@
using NadekoBot.Core.Services;
using NadekoBot.Services;
using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using Discord;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class DownloadTracker : INService
{

View File

@@ -2,9 +2,9 @@
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
using NadekoBot.Core.Common;
using NadekoBot.Common;
using NadekoBot.Modules.Music;
using NadekoBot.Core.Services;
using NadekoBot.Services;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Music.Resolvers;
using NadekoBot.Modules.Music.Services;

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public static class Helpers
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public interface INadekoCommandOptions
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public interface IPlaceholderProvider
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class ImageUrls
{

View File

@@ -4,7 +4,7 @@ using System.Text.Json;
using System.Text.Json.Serialization;
using SixLabors.ImageSharp.PixelFormats;
namespace NadekoBot.Core.Common.JsonConverters
namespace NadekoBot.Common.JsonConverters
{
public class Rgba32Converter : JsonConverter<Rgba32>
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
// needs proper invalid input check (character array input out of range)
// needs negative number support

View File

@@ -1,6 +1,6 @@
using CommandLine;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class LbOpts : INadekoCommandOptions
{

View File

@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
using Discord.Net;
using Serilog;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class LoginErrorHandler
{

View File

@@ -1,7 +1,7 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Core.Services;
using NadekoBot.Services;
using NadekoBot.Extensions;
using System.Globalization;
using System.Threading.Tasks;

View File

@@ -1,6 +1,6 @@
using CommandLine;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public static class OptionsParser
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class OsuMapData
{

View File

@@ -1,6 +1,6 @@
using Newtonsoft.Json;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class OsuUserBests
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Common.Pokemon
namespace NadekoBot.Common.Pokemon
{
public class PokemonNameId
{

View File

@@ -1,7 +1,7 @@
using Newtonsoft.Json;
using System.Collections.Generic;
namespace NadekoBot.Core.Common.Pokemon
namespace NadekoBot.Common.Pokemon
{
public class SearchPokemon
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Common.Pokemon
namespace NadekoBot.Common.Pokemon
{
public class SearchPokemonAbility
{

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class EventPubSub : IPubSub
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public interface IPubSub
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public interface ISeria
{

View File

@@ -1,7 +1,7 @@
using System.Text.Json;
using NadekoBot.Core.Common.JsonConverters;
using NadekoBot.Common.JsonConverters;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class JsonSeria : ISeria
{

View File

@@ -1,11 +1,11 @@
using System;
using System.Threading.Tasks;
using NadekoBot.Core.Services;
using NadekoBot.Services;
using NadekoBot.Extensions;
using Serilog;
using StackExchange.Redis;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public sealed class RedisPubSub : IPubSub
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public readonly struct TypedKey<TData>
{

View File

@@ -1,9 +1,9 @@
using System.Text.RegularExpressions;
using NadekoBot.Common.Yml;
using NadekoBot.Core.Common.Configs;
using NadekoBot.Common.Configs;
using YamlDotNet.Serialization;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public class YamlSeria : IConfigSeria
{

View File

@@ -9,7 +9,7 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using NadekoBot.Core.Common;
using NadekoBot.Common;
namespace NadekoBot.Common.Replacements
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Common
namespace NadekoBot.Common
{
public struct ShmartNumber : IEquatable<ShmartNumber>
{

View File

@@ -2,9 +2,9 @@
using System.Linq;
using System.Threading.Tasks;
using Discord.Commands;
using NadekoBot.Core.Services;
using NadekoBot.Services;
using NadekoBot.Modules.CustomReactions.Services;
using NadekoBot.Core.Common.TypeReaders;
using NadekoBot.Common.TypeReaders;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;

View File

@@ -2,7 +2,7 @@
using System.Threading.Tasks;
using Discord.Commands;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Core.Common.TypeReaders;
using NadekoBot.Common.TypeReaders;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;

View File

@@ -3,7 +3,7 @@ using System.Linq;
using System.Threading.Tasks;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Core.Common.TypeReaders;
using NadekoBot.Common.TypeReaders;
using Discord;
namespace NadekoBot.Common.TypeReaders

View File

@@ -3,7 +3,7 @@ using System.Threading.Tasks;
using Discord.Commands;
using Discord.WebSocket;
namespace NadekoBot.Core.Common.TypeReaders
namespace NadekoBot.Common.TypeReaders
{
public class KwumTypeReader : NadekoTypeReader<kwum>
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace NadekoBot.Core.Common.TypeReaders.Models
namespace NadekoBot.Common.TypeReaders.Models
{
public class StoopidTime
{

View File

@@ -3,7 +3,7 @@ using System.Linq;
using System.Threading.Tasks;
using Discord.Commands;
using NadekoBot.Extensions;
using NadekoBot.Core.Common.TypeReaders;
using NadekoBot.Common.TypeReaders;
using Discord.WebSocket;
namespace NadekoBot.Common.TypeReaders

View File

@@ -1,7 +1,7 @@
using Discord.Commands;
using Discord.WebSocket;
namespace NadekoBot.Core.Common.TypeReaders
namespace NadekoBot.Common.TypeReaders
{
public abstract class NadekoTypeReader<T> : TypeReader
{

View File

@@ -3,7 +3,7 @@ using System.Threading.Tasks;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common.TypeReaders.Models;
using NadekoBot.Core.Common.TypeReaders;
using NadekoBot.Common.TypeReaders;
namespace NadekoBot.Common.TypeReaders
{

View File

@@ -4,7 +4,7 @@ using Discord.Commands;
using Discord.WebSocket;
using SixLabors.ImageSharp;
namespace NadekoBot.Core.Common.TypeReaders
namespace NadekoBot.Common.TypeReaders
{
public class Rgba32TypeReader : NadekoTypeReader<Color>
{

View File

@@ -1,14 +1,14 @@
using Discord.Commands;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
using NadekoBot.Core.Services;
using NadekoBot.Services;
using System;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using NadekoBot.Db;
using NadekoBot.Modules.Gambling.Services;
namespace NadekoBot.Core.Common.TypeReaders
namespace NadekoBot.Common.TypeReaders
{
public class ShmartNumberTypeReader : NadekoTypeReader<ShmartNumber>
{

View File

@@ -1,10 +1,10 @@
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Core.Common.TypeReaders.Models;
using NadekoBot.Common.TypeReaders.Models;
using System;
using System.Threading.Tasks;
namespace NadekoBot.Core.Common.TypeReaders
namespace NadekoBot.Common.TypeReaders
{
public class StoopidTimeTypeReader : NadekoTypeReader<StoopidTime>
{