More fixes to the new config. Module loader reworked

This commit is contained in:
2024-08-06 22:47:59 +03:00
parent 27e25a9166
commit 18a059af0e
51 changed files with 390 additions and 301 deletions

View File

@@ -2,10 +2,20 @@
namespace DiscordBotCore.Interfaces.Modules
{
public interface IModule<T> where T : IBaseModule
public enum ModuleType
{
Logger,
Other
}
/// <summary>
/// Define a module.
/// </summary>
public interface IModule
{
public ModuleType ModuleType { get; }
public string Name { get; }
public T Module { get; }
public Task Initialize();
}
}