Skip to content

Commit

Permalink
another NRE fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Szer committed Jan 22, 2024
1 parent 8064735 commit e8338db
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/VahterBanBot/Bot.fs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ let isBannedPersonAdmin (botConfig: BotConfiguration) (message: Message) =
botConfig.AllowedUsers.ContainsValue message.ReplyToMessage.From.Id

let isKnownCommand (message: Message) =
isPingCommand message ||
isBanCommand message ||
isUnbanCommand message ||
isSoftBanCommand message
message.Text <> null &&
(isPingCommand message ||
isBanCommand message ||
isUnbanCommand message ||
isSoftBanCommand message)

let isBanAuthorized
(botConfig: BotConfiguration)
Expand Down

0 comments on commit e8338db

Please sign in to comment.