mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	Namespace changes to make them make sense
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Overridden to implement custom checks which commands have to pass in order to be executed.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Used as a marker class for bot_perm and user_perm Attributes
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
[AttributeUsage(AttributeTargets.Method)]
 | 
			
		||||
public sealed class bot_owner_onlyAttribute : MedusaPermAttribute
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
using Discord;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
 | 
			
		||||
public sealed class bot_permAttribute : MedusaPermAttribute
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Marks a method as a snek command
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Marks services in command arguments for injection.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Marks the parameter to take 
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Sets the priority of a command in case there are multiple commands with the same name but different parameters.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Marks the class as a service which can be used within the same Medusa
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
using Discord;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
 | 
			
		||||
public sealed class user_permAttribute : MedusaPermAttribute
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
using Discord;
 | 
			
		||||
using NadekoBot;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Commands which take this class as a first parameter can be executed in both DMs and Servers 
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
using Discord;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Commands which take this type as the first parameter can only be executed in DMs
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
using Discord;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Commands which take this type as a first parameter can only be executed in a server
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace NadekoBot;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
public static class EmbedBuilderExtensions
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,6 @@
 | 
			
		||||
using Discord;
 | 
			
		||||
using Nadeko.Snake;
 | 
			
		||||
 | 
			
		||||
namespace NadekoBot;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
public static class MedusaExtensions
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -15,6 +15,6 @@
 | 
			
		||||
    </ItemGroup>
 | 
			
		||||
 | 
			
		||||
    <PropertyGroup Condition=" '$(Version)' == '' ">
 | 
			
		||||
        <Version>6.0.0</Version>
 | 
			
		||||
        <Version>9.0.0</Version>
 | 
			
		||||
    </PropertyGroup>
 | 
			
		||||
</Project>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Overridden to implement parsers for custom types 
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
public readonly struct ParseResult<T>
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
using Discord;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// The base class which will be loaded as a module into NadekoBot
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
using YamlDotNet.Serialization;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
public readonly struct CommandStrings
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
using System.Globalization;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
///     Defines methods to retrieve and reload medusa strings
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
///     Implemented by classes which provide localized strings in their own ways
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
public class LocalMedusaStringsProvider : IMedusaStringsProvider
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
using System.Globalization;
 | 
			
		||||
using Serilog;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
public class MedusaStrings : IMedusaStrings
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
using Serilog;
 | 
			
		||||
using YamlDotNet.Serialization;
 | 
			
		||||
 | 
			
		||||
namespace Nadeko.Snake;
 | 
			
		||||
namespace NadekoBot.Medusa;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
///     Loads strings from the shortcut or localizable path
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user