mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
One of the last major cleanups. All NadekoBot.Core.* namespaces renamed to NadekoBot.*
This commit is contained in:
@@ -15,13 +15,13 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using NadekoBot.Core.Common.Configs;
|
||||
using NadekoBot.Core.Services.Impl;
|
||||
using NadekoBot.Common.Configs;
|
||||
using NadekoBot.Services;
|
||||
using NadekoBot.Db;
|
||||
using NadekoBot.Modules.Administration;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class GuildUserComparer : IEqualityComparer<IGuildUser>
|
||||
{
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class GreetGrouper<T>
|
||||
{
|
||||
|
@@ -8,7 +8,7 @@ using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services.Common
|
||||
namespace NadekoBot.Services.Common
|
||||
{
|
||||
public class ImageLoader
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace NadekoBot.Core.Services.Common
|
||||
namespace NadekoBot.Services.Common
|
||||
{
|
||||
public sealed class RedisImageArray : IReadOnlyList<byte[]>
|
||||
{
|
||||
|
@@ -1,12 +1,12 @@
|
||||
using Microsoft.Data.Sqlite;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using NadekoBot.Core.Services.Database;
|
||||
using NadekoBot.Services.Database;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using NadekoBot.Db;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class DbService
|
||||
{
|
||||
|
@@ -2,7 +2,7 @@
|
||||
using Discord.WebSocket;
|
||||
using NadekoBot.Common;
|
||||
using NadekoBot.Common.Replacements;
|
||||
using NadekoBot.Core.Services.Database.Models;
|
||||
using NadekoBot.Services.Database.Models;
|
||||
using NadekoBot.Extensions;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
@@ -13,7 +13,7 @@ using NadekoBot.Db;
|
||||
using NadekoBot.Modules.Administration;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class GreetSettingsService : INService
|
||||
{
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using Discord;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public interface IBotCredentials
|
||||
{
|
||||
|
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public interface ICurrencyService : INService
|
||||
{
|
||||
|
@@ -2,7 +2,7 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public interface IDataCache
|
||||
{
|
||||
|
@@ -3,7 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public interface IGoogleApiService : INService
|
||||
{
|
||||
|
@@ -1,8 +1,8 @@
|
||||
using NadekoBot.Core.Common;
|
||||
using NadekoBot.Common;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public interface IImageCache
|
||||
{
|
||||
|
@@ -1,8 +1,8 @@
|
||||
using NadekoBot.Core.Common.Pokemon;
|
||||
using NadekoBot.Common.Pokemon;
|
||||
using NadekoBot.Modules.Games.Common.Trivia;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public interface ILocalDataCache
|
||||
{
|
||||
|
@@ -2,7 +2,7 @@
|
||||
using System.Globalization;
|
||||
using Discord;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public interface ILocalization : INService
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// All services must implement this interface in order to be auto-discovered by the DI system
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public interface IStatsService : INService
|
||||
{
|
||||
|
@@ -6,10 +6,9 @@ using System;
|
||||
using System.Collections.Immutable;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using NadekoBot.Core.Common;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class BotCredentials : IBotCredentials
|
||||
{
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using Discord;
|
||||
using Discord.WebSocket;
|
||||
using NadekoBot.Core.Services.Database;
|
||||
using NadekoBot.Core.Services.Database.Models;
|
||||
using NadekoBot.Services.Database;
|
||||
using NadekoBot.Services.Database.Models;
|
||||
using NadekoBot.Extensions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -10,7 +10,7 @@ using System.Threading.Tasks;
|
||||
using NadekoBot.Db;
|
||||
using NadekoBot.Modules.Gambling.Services;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class CurrencyService : ICurrencyService
|
||||
{
|
||||
|
@@ -3,7 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class FontProvider : INService
|
||||
{
|
||||
|
@@ -16,7 +16,7 @@ using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class GoogleApiService : IGoogleApiService
|
||||
{
|
||||
|
@@ -1,5 +1,5 @@
|
||||
using NadekoBot.Core.Common;
|
||||
using NadekoBot.Core.Services.Common;
|
||||
using NadekoBot.Common;
|
||||
using NadekoBot.Services.Common;
|
||||
using NadekoBot.Extensions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
@@ -13,7 +13,7 @@ using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public sealed class RedisImagesCache : IImageCache
|
||||
{
|
||||
|
@@ -9,7 +9,7 @@ using System.IO;
|
||||
using NadekoBot.Db;
|
||||
using NadekoBot.Modules.Administration;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class Localization : ILocalization
|
||||
{
|
||||
|
@@ -6,7 +6,7 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class RedisCache : IDataCache
|
||||
{
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using NadekoBot.Core.Common.Pokemon;
|
||||
using NadekoBot.Common.Pokemon;
|
||||
using NadekoBot.Extensions;
|
||||
using NadekoBot.Modules.Games.Common.Trivia;
|
||||
using Newtonsoft.Json;
|
||||
@@ -9,7 +9,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class RedisLocalDataCache : ILocalDataCache
|
||||
{
|
||||
|
@@ -7,7 +7,7 @@ using Discord.WebSocket;
|
||||
using Grpc.Core;
|
||||
using NadekoBot.Common.ModuleBehaviors;
|
||||
using NadekoBot.Coordinator;
|
||||
using NadekoBot.Core.Services;
|
||||
using NadekoBot.Services;
|
||||
using NadekoBot.Extensions;
|
||||
using Serilog;
|
||||
|
||||
|
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
using Discord.WebSocket;
|
||||
using NadekoBot.Core.Services;
|
||||
using NadekoBot.Services;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Services
|
||||
|
@@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class SoundCloudApiService : INService
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
using System.Collections;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class StartingGuildsService : IEnumerable<ulong>, INService
|
||||
{
|
||||
|
@@ -10,7 +10,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class StatsService : IStatsService
|
||||
{
|
||||
|
@@ -1,7 +0,0 @@
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
{
|
||||
public class SyncPreconditionService
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
||||
using NadekoBot.Extensions;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services.Impl
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class YtdlOperation
|
||||
{
|
||||
|
@@ -4,7 +4,7 @@ using Serilog;
|
||||
using Serilog.Events;
|
||||
using Serilog.Sinks.SystemConsole.Themes;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public static class LogSetup
|
||||
{
|
||||
|
@@ -2,11 +2,11 @@
|
||||
using System.Data.Common;
|
||||
using System.Globalization;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using NadekoBot.Core.Common.Configs;
|
||||
using NadekoBot.Common.Configs;
|
||||
using Serilog;
|
||||
using SixLabors.ImageSharp.PixelFormats;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public sealed class BotConfigMigrator : IConfigMigrator
|
||||
{
|
||||
|
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using Discord;
|
||||
using NadekoBot.Core.Common;
|
||||
using NadekoBot.Core.Common.Configs;
|
||||
using NadekoBot.Common;
|
||||
using NadekoBot.Common.Configs;
|
||||
using SixLabors.ImageSharp.PixelFormats;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Settings service for bot-wide configuration.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using System.Globalization;
|
||||
using SixLabors.ImageSharp.PixelFormats;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Custom setting value parsers for types which don't have them by default
|
||||
|
@@ -7,13 +7,13 @@ using System.Reflection;
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
using NadekoBot.Common.Yml;
|
||||
using NadekoBot.Core.Common;
|
||||
using NadekoBot.Core.Common.Configs;
|
||||
using NadekoBot.Core.Common.JsonConverters;
|
||||
using Rgba32Converter = NadekoBot.Core.Common.JsonConverters.Rgba32Converter;
|
||||
using CultureInfoConverter = NadekoBot.Core.Common.JsonConverters.CultureInfoConverter;
|
||||
using NadekoBot.Common;
|
||||
using NadekoBot.Common.Configs;
|
||||
using NadekoBot.Common.JsonConverters;
|
||||
using Rgba32Converter = NadekoBot.Common.JsonConverters.Rgba32Converter;
|
||||
using CultureInfoConverter = NadekoBot.Common.JsonConverters.CultureInfoConverter;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Base service for all settings services
|
||||
|
@@ -5,7 +5,7 @@ using NadekoBot.Modules.Gambling.Common;
|
||||
using NadekoBot.Modules.Gambling.Services;
|
||||
using Serilog;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public sealed class GamblingConfigMigrator : IConfigMigrator
|
||||
{
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public interface IConfigMigrator
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface that all services which deal with configs should implement
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Delegate which describes a parser which can convert string input into given data type
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public static class StandardConversions
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines methods to retrieve and reload bot strings
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Implemented by classes which provide localized strings in their own ways
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Basic interface used for classes implementing strings loading mechanism
|
||||
|
@@ -3,7 +3,7 @@ using System.Globalization;
|
||||
using Serilog;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class BotStrings : IBotStrings
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
public class LocalBotStringsProvider : IBotStringsProvider
|
||||
{
|
||||
|
@@ -5,7 +5,7 @@ using Newtonsoft.Json;
|
||||
using Serilog;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Loads strings from the local default filepath <see cref="_responsesPath"/>
|
||||
|
@@ -5,7 +5,7 @@ using Discord.WebSocket;
|
||||
using NadekoBot.Extensions;
|
||||
using StackExchange.Redis;
|
||||
|
||||
namespace NadekoBot.Core.Services
|
||||
namespace NadekoBot.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Uses <see cref="IStringsSource"/> to load strings into redis hash (only on Shard 0)
|
||||
|
Reference in New Issue
Block a user