Removed the WebUI. Removed the Modules

This commit is contained in:
2024-10-30 23:10:04 +02:00
parent f8df0f0254
commit 9e8bfbbe16
2133 changed files with 120 additions and 15581 deletions

View File

@@ -0,0 +1,13 @@
using System;
using DiscordBotCore.Others;
namespace DiscordBotCore.Interfaces.Logger;
public interface ILogMessage
{
public string Message { get; protected set; }
public DateTime ThrowTime { get; protected set; }
public string SenderName { get; protected set; }
public LogType LogMessageType { get; protected set; }
}

View File

@@ -0,0 +1,23 @@
using System;
using DiscordBotCore.Others;
namespace DiscordBotCore.Interfaces.Logger;
public interface ILogger
{
public struct FormattedMessage {
public string Message;
public LogType Type;
}
string LogMessageFormat { get; set; }
void Log(string message);
void Log(string message, LogType logType);
void Log(string message, LogType logType, string format);
void Log(string message, object Sender);
void Log(string message, object Sender, LogType type);
void LogException(Exception exception, object Sender, bool logFullStack = false);
void SetOutFunction(Action<string,LogType> outFunction);
}

View File

@@ -1,25 +0,0 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace DiscordBotCore.Interfaces.Modules
{
public enum ModuleType
{
Logger,
Compatibility,
Other
}
/// <summary>
/// Define a module.
/// </summary>
public interface IModule
{
public ModuleType ModuleType { get; }
public string Name { get; }
public IDictionary<string, string> MethodMapping { get; }
public Task Initialize();
}
}