[cm & ci] Send message on user unban. Trigger redeploy in CI.

This commit is contained in:
West14
2022-04-08 15:53:34 +03:00
parent 6b49ecb4d9
commit 166363cd50
2 changed files with 11 additions and 1 deletions
+7
View File
@@ -37,3 +37,10 @@ jobs:
push: ${{ github.ref == 'refs/heads/dev' }} push: ${{ github.ref == 'refs/heads/dev' }}
tags: ${{ secrets.REGISTRY_URL }}/west/telegram-bot:latest, tags: ${{ secrets.REGISTRY_URL }}/west/telegram-bot:latest,
${{ secrets.REGISTRY_URL }}/west/telegram-bot:${{ steps.commit_sha.outputs.sha_short }} ${{ secrets.REGISTRY_URL }}/west/telegram-bot:${{ steps.commit_sha.outputs.sha_short }}
-
name: Redeploy container
uses: fjogeleit/http-request-action@v1
if: ${{ github.ref == 'refs/heads/dev' }}
with:
url: ${{ secrets.CONTAINER_WEBHOOK }}
method: 'POST'
+3
View File
@@ -5,6 +5,7 @@ using BotFramework.Attributes;
using BotFramework.Enums; using BotFramework.Enums;
using Kruzya.TelegramBot.Core; using Kruzya.TelegramBot.Core;
using Kruzya.TelegramBot.Core.Data; using Kruzya.TelegramBot.Core.Data;
using Kruzya.TelegramBot.Core.Extensions;
using Telegram.Bot; using Telegram.Bot;
using Telegram.Bot.Types; using Telegram.Bot.Types;
@@ -39,5 +40,7 @@ public class Ban : CommonHandler
CanSendOtherMessages = true, CanSendOtherMessages = true,
CanAddWebPagePreviews = true CanAddWebPagePreviews = true
}); });
await Reply($"{From.ToHtml()} <code>разблокировал</code> {RepliedUser!.ToHtml()}");
} }
} }