mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
make a separate channel list for ocr handler
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user