Update Dockerfile to build ContentStore. Fix success purchase message markup.

This commit is contained in:
West14
2022-02-16 17:11:29 +02:00
parent e815deba58
commit 16ca4a09a2
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@ COPY ./modules/Entertainment/*.csproj ./modules/Entertainment/
COPY ./modules/UserGroupTag/*.csproj ./modules/UserGroupTag/
COPY ./modules/ChatQuotes/*.csproj ./modules/ChatQuotes/
COPY ./modules/Reputation/*.csproj ./modules/Reputation/
COPY ./modules/ContentStore/*.csproj ./modules/ContentStore/
RUN dotnet restore Kruzya.TelegramBot.sln
# Copy all project files
+4 -1
View File
@@ -117,7 +117,10 @@ public class Store : BotEventHandler
}
await _reputation.IncrementReputationAsync(Chat, From, -storeItem.Price);
await Bot.EditMessageTextAsync(Chat.Id, messageId, $"{From.ToHtml()} купил \"{storeItem.Name}\".");
await Bot.EditMessageTextAsync(Chat.Id,
messageId,
$"{From.ToHtml()} купил \"{storeItem.Name}\".",
ParseMode.Html);
var randomMedia = await mediaService!.GetRandomMediaAsync();
var file = new InputOnlineFile(randomMedia.Url);