- Renamed Prefix to prefix

- Updated some command string keys which were using command name to use method names now
This commit is contained in:
Kwoth
2022-01-02 16:52:39 +01:00
parent 2edda76218
commit ca9fa1b0ac
18 changed files with 91 additions and 93 deletions

View File

@@ -6,9 +6,9 @@ public static class CommandNameLoadHelper
{
private static readonly IDeserializer _deserializer = new Deserializer();
public static Lazy<Dictionary<string, string[]>> LazyCommandAliases = new(() => LoadCommandNames());
public static Lazy<Dictionary<string, string[]>> LazyCommandAliases = new(() => LoadAliases());
public static Dictionary<string, string[]> LoadCommandNames(string aliasesFilePath = "data/aliases.yml")
public static Dictionary<string, string[]> LoadAliases(string aliasesFilePath = "data/aliases.yml")
{
var text = File.ReadAllText(aliasesFilePath);
return _deserializer.Deserialize<Dictionary<string, string[]>>(text);

View File

@@ -16,7 +16,7 @@ public abstract class NadekoModule : ModuleBase
public ILocalization Localization { get; set; }
public IEmbedBuilderService _eb { get; set; }
public string Prefix
protected string prefix
=> CmdHandler.GetPrefix(ctx.Guild);
protected ICommandContext ctx