mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Fix for DMHelpText
This commit is contained in:
@@ -45,7 +45,7 @@ public class HelpService : IExecNoCommand, INService
|
|||||||
|
|
||||||
// only send dm help text if it contains one of the keywords, if they're specified
|
// only send dm help text if it contains one of the keywords, if they're specified
|
||||||
// if they're not, then reply to every DM
|
// if they're not, then reply to every DM
|
||||||
if (settings.DmHelpTextKeywords.Any() && !settings.DmHelpTextKeywords.Any(k => msg.Content.Contains(k)))
|
if (settings.DmHelpTextKeywords is not null && !settings.DmHelpTextKeywords.Any(k => msg.Content.Contains(k)))
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
|
||||||
var rep = new ReplacementBuilder().WithOverride("%prefix%", () => _bss.Data.Prefix)
|
var rep = new ReplacementBuilder().WithOverride("%prefix%", () => _bss.Data.Prefix)
|
||||||
|
Reference in New Issue
Block a user