Updated a few things in the Marmalade system

This commit is contained in:
Toastie (DCS Team) 2024-03-29 01:01:35 +13:00
parent 64363d2e8b
commit daa71f812e
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
24 changed files with 26 additions and 26 deletions

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Overridden to implement custom checks which commands have to pass in order to be executed.

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Used as a marker class for bot_perm and user_perm Attributes

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
[AttributeUsage(AttributeTargets.Method)]
public sealed class bot_owner_onlyAttribute : MarmaladePermAttribute

View file

@ -1,6 +1,6 @@
using Discord;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class bot_permAttribute : MarmaladePermAttribute

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Marks a method as a snek command

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Marks services in command arguments for injection.

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Marks the parameter to take

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Sets the priority of a command in case there are multiple commands with the same name but different parameters.

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Marks the class as a service which can be used within the same Medusa

View file

@ -1,6 +1,6 @@
using Discord;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class user_permAttribute : MarmaladePermAttribute

View file

@ -1,6 +1,6 @@
using Discord;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// The base class which will be loaded as a module into EllieBot

View file

@ -1,7 +1,7 @@
using Discord;
using EllieBot;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Commands which take this class as a first parameter can be executed in both DMs and Servers
@ -29,7 +29,7 @@ public abstract class AnyContext
public abstract ISelfUser Bot { get; }
/// <summary>
/// Provides access to strings used by this medusa
/// Provides access to strings used by this marmalade
/// </summary>
public abstract IMarmaladeStrings Strings { get; }

View file

@ -1,6 +1,6 @@
using Discord;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Commands which take this type as the first parameter can only be executed in DMs

View file

@ -1,6 +1,6 @@
using Discord;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Commands which take this type as a first parameter can only be executed in a server

View file

@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<EnablePreviewFeatures>true</EnablePreviewFeatures>
<RootNamespace>Ellie.Canary</RootNamespace>
<RootNamespace>Ellie.Marmalade</RootNamespace>
<Authors>The EllieBot Devs</Authors>
</PropertyGroup>

View file

@ -1,5 +1,5 @@
using Discord;
using Ellie.Canary;
using Ellie.Marmalade;
namespace EllieBot;

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Overridden to implement parsers for custom types

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
public readonly struct ParseResult<T>
{

View file

@ -1,6 +1,6 @@
using YamlDotNet.Serialization;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
public readonly struct CommandStrings
{

View file

@ -1,6 +1,6 @@
using System.Globalization;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Defines methods to retrieve and reload marmalade strings

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Implemented by classes which provide localized strings in their own ways

View file

@ -1,4 +1,4 @@
namespace Ellie.Canary;
namespace Ellie.Marmalade;
public class LocalMarmaladeStringsProvider : IMarmaladeStringsProvider
{

View file

@ -1,7 +1,7 @@
using System.Globalization;
using Serilog;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
public class MarmaladeStrings : IMarmaladeStrings
{

View file

@ -2,7 +2,7 @@
using Serilog;
using YamlDotNet.Serialization;
namespace Ellie.Canary;
namespace Ellie.Marmalade;
/// <summary>
/// Loads strings from the shortcut or localizable path