fix(discord): add console logging and deferred responses
PR Checks / test-and-build (pull_request) Failing after 12m3s

- Add builder.Logging.AddConsole() to DiscordBot Program.cs so logs
  are visible in docker logs.
- Add granular LogInformation/LogError calls to DiscordNewSessionCommand
  and DiscordRescheduleCommand to diagnose failures.
- Use InteractionCallback.DeferredMessage() + ModifyResponseAsync pattern
  for /newsession and /reschedule to avoid Discord 3-second interaction
  timeout.
- Bump version → 3.0.8

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 11:18:09 +03:00
parent 11e75d036a
commit a5624897e9
8 changed files with 109 additions and 38 deletions
+3 -3
View File
@@ -49,7 +49,7 @@ services:
crond -f
bot:
image: git.codeanddice.ru/toutsu/gmrelay-bot:3.0.7
image: git.codeanddice.ru/toutsu/gmrelay-bot:3.0.8
restart: always
depends_on:
db:
@@ -67,7 +67,7 @@ services:
retries: 3
discord:
image: git.codeanddice.ru/toutsu/gmrelay-discord-bot:3.0.7
image: git.codeanddice.ru/toutsu/gmrelay-discord-bot:3.0.8
restart: always
depends_on:
db:
@@ -84,7 +84,7 @@ services:
retries: 3
web:
image: git.codeanddice.ru/toutsu/gmrelay-web:3.0.7
image: git.codeanddice.ru/toutsu/gmrelay-web:3.0.8
restart: always
depends_on:
db: