Removed the WebUI. Removed the Modules
This commit is contained in:
13
DiscordBotCore/Interfaces/Logger/ILogMessage.cs
Normal file
13
DiscordBotCore/Interfaces/Logger/ILogMessage.cs
Normal 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; }
|
||||
|
||||
}
|
||||
23
DiscordBotCore/Interfaces/Logger/ILogger.cs
Normal file
23
DiscordBotCore/Interfaces/Logger/ILogger.cs
Normal 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);
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user