mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Namespace changes to make them make sense
This commit is contained in:
@@ -131,7 +131,7 @@ public static class StringExtensions
|
||||
me =>
|
||||
{
|
||||
var str = me.Groups["code"].Value;
|
||||
var newString = YamlHelper.UnescapeUnicodeCodePoint(str);
|
||||
var newString = str.UnescapeUnicodeCodePoint();
|
||||
return newString;
|
||||
});
|
||||
}
|
@@ -1,6 +1,4 @@
|
||||
#nullable enable
|
||||
|
||||
using Nadeko.Snake;
|
||||
using NadekoBot.Medusa;
|
||||
|
||||
[DIIgnore]
|
||||
public sealed class BehaviorAdapter : ICustomBehavior
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using Nadeko.Snake;
|
||||
using NadekoBot.Medusa;
|
||||
|
||||
internal class ContextAdapterFactory
|
||||
{
|
||||
|
@@ -1,5 +1,5 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Nadeko.Snake;
|
||||
using NadekoBot.Medusa;
|
||||
|
||||
public sealed class DmContextAdapter : DmContext
|
||||
{
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using Nadeko.Snake;
|
||||
using NadekoBot.Medusa;
|
||||
|
||||
namespace Nadeko.Medusa.Adapters;
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Nadeko.Snake;
|
||||
using NadekoBot.Medusa;
|
||||
|
||||
public sealed class GuildContextAdapter : GuildContext
|
||||
{
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using Nadeko.Snake;
|
||||
using NadekoBot.Medusa;
|
||||
|
||||
public sealed class ParamParserAdapter<T> : TypeReader
|
||||
{
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
/// <summary>
|
||||
/// Enum specifying in which context the command can be executed
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
public interface IMedusaConfigService
|
||||
{
|
||||
|
@@ -2,7 +2,7 @@
|
||||
using Cloneable;
|
||||
using NadekoBot.Common.Yml;
|
||||
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
[Cloneable]
|
||||
public sealed partial class MedusaConfig : ICloneable<MedusaConfig>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using NadekoBot.Common.Configs;
|
||||
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
public sealed class MedusaConfigService : ConfigServiceBase<MedusaConfig>, IMedusaConfigService
|
||||
{
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.Loader;
|
||||
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
public class MedusaAssemblyLoadContext : AssemblyLoadContext
|
||||
{
|
||||
|
@@ -1,5 +1,4 @@
|
||||
using Nadeko.Snake;
|
||||
using System.Reflection;
|
||||
using System.Reflection;
|
||||
using Ninject;
|
||||
using Ninject.Activation;
|
||||
using Ninject.Activation.Caching;
|
||||
@@ -7,7 +6,7 @@ using Ninject.Modules;
|
||||
using Ninject.Planning;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
public sealed class MedusaNinjectModule : NinjectModule
|
||||
{
|
||||
|
@@ -10,9 +10,8 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Nadeko.Snake;
|
||||
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
// ReSharper disable RedundantAssignment
|
||||
public sealed class MedusaLoaderService : IMedusaLoaderService, IReadyExecutor, INService
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
public sealed record ParamData(
|
||||
Type Type,
|
||||
|
@@ -1,8 +1,8 @@
|
||||
using Nadeko.Snake;
|
||||
using NadekoBot.Medusa;
|
||||
using Ninject.Modules;
|
||||
using System.Collections.Immutable;
|
||||
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
public sealed record ResolvedMedusa(
|
||||
WeakReference<MedusaAssemblyLoadContext> LoadContext,
|
||||
|
@@ -1,8 +1,7 @@
|
||||
using Nadeko.Snake;
|
||||
using NadekoBot.Medusa;
|
||||
using System.Reflection;
|
||||
using CommandStrings = Nadeko.Snake.CommandStrings;
|
||||
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
public sealed class SnekCommandData
|
||||
{
|
||||
|
@@ -1,6 +1,4 @@
|
||||
using Nadeko.Snake;
|
||||
|
||||
namespace Nadeko.Medusa;
|
||||
namespace NadekoBot.Medusa;
|
||||
|
||||
public sealed record SnekInfo(
|
||||
string Name,
|
||||
|
@@ -86,7 +86,7 @@ public abstract class NadekoModule : ModuleBase
|
||||
embed.WithPendingColor()
|
||||
.WithFooter("yes/no");
|
||||
|
||||
var msg = await MessageChannelExtensions.EmbedAsync(ctx.Channel, embed);
|
||||
var msg = await ctx.Channel.EmbedAsync(embed);
|
||||
try
|
||||
{
|
||||
var input = await GetUserInputAsync(ctx.User.Id, ctx.Channel.Id);
|
||||
|
Reference in New Issue
Block a user