diff --git a/CHEF/Components/Watcher/AutoPastebin.cs b/CHEF/Components/Watcher/AutoPastebin.cs index 66ecffd..943c125 100644 --- a/CHEF/Components/Watcher/AutoPastebin.cs +++ b/CHEF/Components/Watcher/AutoPastebin.cs @@ -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