[code-watcher] skip messages with lineCount < 2

This commit is contained in:
Andriy
2022-07-07 17:02:47 +03:00
parent afb942a33a
commit e1ec7937fe
+5
View File
@@ -34,6 +34,11 @@ public class Handler : BotEventHandler
.SplitToLines() .SplitToLines()
.ToList(); .ToList();
if (entityLines.Count < 2)
{
continue;
}
if (entityLines.Count >= 20 || entityLines.Any(line => line.Length > 160)) if (entityLines.Count >= 20 || entityLines.Any(line => line.Length > 160))
{ {
await DeleteAndNotifyAsync(message); await DeleteAndNotifyAsync(message);