Skip to content

Commit

Permalink
Notice the user that the file was modified
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiao921 committed Oct 12, 2022
1 parent 51a8b51 commit 7a5af4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHEF/Components/Watcher/AutoPastebin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ static bool IsAttachmentValidExtension(string extension)

var noDuplicateFileContent = CommonIssues.RemoveDuplicateExceptionsFromText(fileContent);

_ = Task.Run(() => PostBin(msg, attachment, noDuplicateFileContent));
var postBinTask = Task.Run(() => PostBin(msg, attachment, noDuplicateFileContent).ContinueWith(
async (t) =>
{
await msg.Channel.SendMessageAsync("This file only contains the first occurences of the exceptions, the others occurences were removed for file size reasons.");
}));
alreadyPostedBin = true;
}
else
Expand Down

0 comments on commit 7a5af4d

Please sign in to comment.