Skip to content

Commit 0f9247e

Browse files
Fix NotifierBot compilation error
1 parent 0813c01 commit 0f9247e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

NotifierBot/Sources/Notifier/Commands/DiffCommand.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ struct DiffCommand: Command {
3232
return
3333
}
3434
let realName = entry.name
35-
// Send the diff file and the contents of the ncc file
36-
let nccInfo = try? String(contentsOfFile: "\(mainDirectory)/urlwatcher/images/\(realName)/\(kNccFile)")
37-
print("Sending diff file and NCC information:\n\(nccInfo ?? "nil")")
38-
JFUtils.sendImage(path: "\(mainDirectory)/urlwatcher/images/\(realName).\(chatID)/\(kDiffFile)", chatID: chatID, text: nccInfo)
35+
// Send the diff file and the contents of the score file
36+
let scoreInfo = try? String(contentsOfFile: "\(mainDirectory)/urlwatcher/images/\(realName)/\(kScoreFile)")
37+
print("Sending diff file and score information:\n\(scoreInfo ?? "nil")")
38+
JFUtils.sendImage(path: "\(mainDirectory)/urlwatcher/images/\(realName).\(chatID)/\(kDiffFile)", chatID: chatID, text: scoreInfo)
3939
}
4040
}

0 commit comments

Comments
 (0)