add: Added .dmmod and .dmcmd to disable modules and commands in bot DMs

This commit is contained in:
Kwoth
2024-12-02 02:20:33 +00:00
parent 5143e42dff
commit 2d72f6f498
7 changed files with 103 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ namespace NadekoBot.Common.Configs;
public sealed partial class BotConfig : ICloneable<BotConfig>
{
[Comment("""DO NOT CHANGE""")]
public int Version { get; set; } = 8;
public int Version { get; set; } = 9;
[Comment("""
Most commands, when executed, have a small colored line
@@ -82,6 +82,9 @@ public sealed partial class BotConfig : ICloneable<BotConfig>
[Comment("""List of modules and commands completely blocked on the bot""")]
public BlockedConfig Blocked { get; set; }
[Comment("""List of modules and commands blocked from usage in DMs on the bot""")]
public BlockedConfig DmBlocked { get; set; } = new();
[Comment("""Which string will be used to recognize the commands""")]
public string Prefix { get; set; }