make a separate channel list for ocr handler

This commit is contained in:
13xforever
2020-03-10 21:12:48 +05:00
parent 8a15c80b6f
commit a431cd8cd2
2 changed files with 9 additions and 1 deletions

View File

@@ -138,6 +138,14 @@ namespace CompatBot
319224795785068545,
}.AsReadOnly();
public static readonly IReadOnlyCollection<ulong> OcrChannels = new HashSet<ulong>(Channels)
{
272035812277878785,
277227681836302338,
564846659109126244,
534749301797158914,
};
public static readonly IReadOnlyCollection<string> RoleWhiteList = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase)
{
"Administrator",

View File

@@ -31,7 +31,7 @@ namespace CompatBot.EventHandlers
if (message == null)
return;
if (!(Config.Moderation.Channels.Contains(evt.Channel.Id) || evt.Channel.Name.Contains("help")))
if (!Config.Moderation.OcrChannels.Contains(evt.Channel.Id))
return;
#if !DEBUG