Skip to content

Commit

Permalink
Fix log message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Jul 21, 2024
1 parent 7858368 commit 49c4da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VahterBanBot/Bot.fs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ let killSpammerAutomated
|> DB.banUserByBot

let msgType = if deleteMessage then "Deleted" else "Detected"
let logMsg = $"""{msgType} spam (score: {score}) in {prependUsername message.Chat.Username} ({message.Chat.Id}) from {prependUsername message.From.Username} ({message.From.Id}) with text:\n{message.Text}"""
let logMsg = $"{msgType} spam (score: {score}) in {prependUsername message.Chat.Username} ({message.Chat.Id}) from {prependUsername message.From.Username} ({message.From.Id}) with text:\n{message.Text}"

// log both to logger and to logs channel
do! botClient.SendTextMessageAsync(ChatId(botConfig.LogsChannelId), logMsg) |> taskIgnore
Expand Down

0 comments on commit 49c4da5

Please sign in to comment.