Skip to content

Commit

Permalink
update ignorable
Browse files Browse the repository at this point in the history
  • Loading branch information
azhe403 committed Jun 2, 2024
1 parent d9d2174 commit e6739ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/ZiziBot.Utils/ErrorUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ public static bool IsIgnorable(this string message)
{
var ignorableMessages = new List<string>() {
"a connection attempt failed",
"bot is not a member",
"bot was blocked",
"chat not found",
"cannot begin with",
"chat not found",
"connection could not be established",
"error occurred while parsing",
"message can't be deleted",
Expand All @@ -21,8 +22,8 @@ public static bool IsIgnorable(this string message)
"request was canceled",
"root element is missing",
"root level is invalid",
"unexpected token",
"user is deactivated",
"unexpected token"
};

return ignorableMessages.Exists(message.ToLower().Contains);
Expand Down

0 comments on commit e6739ab

Please sign in to comment.