Removed leftover ModTools references

This commit is contained in:
Noikoio 2018-03-17 13:51:09 -07:00
parent bdc0d223cd
commit 3298efc65c
3 changed files with 6 additions and 6 deletions

View file

@ -21,17 +21,17 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands
[DebuggerDisplay("Command def: {Label}")] [DebuggerDisplay("Command def: {Label}")]
abstract class Command abstract class Command
{ {
private readonly CommandListener _modtools; private readonly CommandListener _mod;
private readonly string _label; private readonly string _label;
private readonly string _command; private readonly string _command;
protected CommandListener Module => _modtools; protected CommandListener Module => _mod;
public string Label => _label; public string Label => _label;
public string Trigger => _command; public string Trigger => _command;
public Command(CommandListener l, string label, JObject conf) public Command(CommandListener l, string label, JObject conf)
{ {
_modtools = l; _mod = l;
_label = label; _label = label;
_command = conf["command"].Value<string>(); _command = conf["command"].Value<string>();
} }
@ -40,7 +40,7 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands
protected Task Log(string text) protected Task Log(string text)
{ {
return _modtools.Log($"{Label}: {text}"); return _mod.Log($"{Label}: {text}");
} }
#region Config loading #region Config loading

View file

@ -8,7 +8,7 @@ using System.Collections.ObjectModel;
namespace Noikoio.RegexBot.Module.ModCommands namespace Noikoio.RegexBot.Module.ModCommands
{ {
/// <summary> /// <summary>
/// Represents ModTools configuration within one server. /// Contains a server's ModCommands configuration.
/// </summary> /// </summary>
class ConfigItem class ConfigItem
{ {

View file

@ -25,7 +25,7 @@ servers: [
The following is a list of accepted members within a server definition. 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-). * 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. * 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. * [automod](automod.html) (*name/value pairs*) - See respective page.
* [autoresponses](autorespond.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. * [ModCommands](modcommands.html) (*name/value pairs*) - See respective page.