Noi
ebdaa6482c
The feature was previously meant for monitoring errors in a large public bot instance, but is massively redundant and even annoying when using as a self-hosted instance. Besides, the information it did report was excessive and of little use.
21 lines
727 B
C#
21 lines
727 B
C#
namespace RegexBot.Services;
|
|
/// <summary>
|
|
/// Base class for services.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Services provide core and shared functionality for this program. Modules are expected to call into services
|
|
/// directly or indirectly in order to access bot features.
|
|
/// </remarks>
|
|
internal abstract class Service {
|
|
public RegexbotClient BotClient { get; }
|
|
|
|
public string Name => GetType().Name;
|
|
|
|
public Service(RegexbotClient bot) => BotClient = bot;
|
|
|
|
/// <summary>
|
|
/// Emits a log message.
|
|
/// </summary>
|
|
/// <param name="message">The log message to send. Multi-line messages are acceptable.</param>
|
|
protected void Log(string message) => BotClient._svcLogging.DoLog(Name, message);
|
|
}
|