diff --git a/Module/ModCommands/Commands/_CommandBase.cs b/Module/ModCommands/Commands/_CommandBase.cs index 64e5a02..fa58f9b 100644 --- a/Module/ModCommands/Commands/_CommandBase.cs +++ b/Module/ModCommands/Commands/_CommandBase.cs @@ -21,17 +21,17 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands [DebuggerDisplay("Command def: {Label}")] abstract class Command { - private readonly CommandListener _modtools; + private readonly CommandListener _mod; private readonly string _label; private readonly string _command; - protected CommandListener Module => _modtools; + protected CommandListener Module => _mod; public string Label => _label; public string Trigger => _command; public Command(CommandListener l, string label, JObject conf) { - _modtools = l; + _mod = l; _label = label; _command = conf["command"].Value(); } @@ -40,7 +40,7 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands protected Task Log(string text) { - return _modtools.Log($"{Label}: {text}"); + return _mod.Log($"{Label}: {text}"); } #region Config loading diff --git a/Module/ModCommands/ConfigItem.cs b/Module/ModCommands/ConfigItem.cs index 0f7c8e5..7657dff 100644 --- a/Module/ModCommands/ConfigItem.cs +++ b/Module/ModCommands/ConfigItem.cs @@ -8,7 +8,7 @@ using System.Collections.ObjectModel; namespace Noikoio.RegexBot.Module.ModCommands { /// - /// Represents ModTools configuration within one server. + /// Contains a server's ModCommands configuration. /// class ConfigItem { diff --git a/docs/serverdef.md b/docs/serverdef.md index 88ce186..00d9980 100644 --- a/docs/serverdef.md +++ b/docs/serverdef.md @@ -25,7 +25,7 @@ servers: [ The following is a list of accepted members within a server definition. * id (*integer*) - **Required.** A value containing the server's [unique ID](https://support.discordapp.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-). * name (*string*) - Preferably a readable version of the server's name. Not used for anything other than internal logging. -* moderators (*[entity list](entitylist.html)*) - A list of entities to consider as moderators. Actions done by members of this list are able to execute *ModTools* commands and are exempt from certain *AutoMod* rules. See their respective pages for more details. +* moderators (*[entity list](entitylist.html)*) - A list of entities to consider as moderators. Actions done by members of this list are able to execute *ModCommands* commands and are exempt from certain *AutoMod* rules. See their respective pages for more details. * [automod](automod.html) (*name/value pairs*) - See respective page. * [autoresponses](autorespond.html) (*name/value pairs*) - See respective page. * [ModCommands](modcommands.html) (*name/value pairs*) - See respective page. \ No newline at end of file