Merge pull request 'Fix thaw report channel lookup' (#8) from fix/thaw-report-channel into main
All checks were successful
Build Docker Image / build (push) Successful in 49s
All checks were successful
Build Docker Image / build (push) Successful in 49s
Reviewed-on: #8
This commit is contained in:
commit
25ba45e529
11
CLAUDE.md
11
CLAUDE.md
@ -53,9 +53,16 @@ class MyCog(commands.Cog):
|
|||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
Builds and deploys are handled by Gitea Actions. Just create a PR to `main`:
|
### Production Environment
|
||||||
|
- **Host**: `ssh akamai` (Akamai cloud server)
|
||||||
|
- **Bot container**: `major-domo-discord-app-1`
|
||||||
|
- **Logs**: `ssh akamai "docker logs --since 1h major-domo-discord-app-1"`
|
||||||
|
- **Other services on same host**: `sba_db_api`, `sba_postgres`, `sba_redis`, `sba-website-sba-web-1`, `pd_api`
|
||||||
|
|
||||||
|
### CI/CD
|
||||||
|
Builds and deploys are handled by Gitea Actions. Create a PR to `main` using `tea`:
|
||||||
```bash
|
```bash
|
||||||
/home/cal/.claude/scripts/gitea-create-pr.sh cal/major-domo-bot <branch> main "title" "description"
|
tea pulls create --repo cal/major-domo-v2 --head <branch> --base main --title "title" --description "description"
|
||||||
```
|
```
|
||||||
Gitea validates the version, builds the Docker image, and deploys on merge.
|
Gitea validates the version, builds the Docker image, and deploys on merge.
|
||||||
|
|
||||||
|
|||||||
@ -72,6 +72,9 @@ class BotConfig(BaseSettings):
|
|||||||
help_editor_role_name: str = "Help Editor"
|
help_editor_role_name: str = "Help Editor"
|
||||||
sba_players_role_name: str = "Season 13 Players"
|
sba_players_role_name: str = "Season 13 Players"
|
||||||
|
|
||||||
|
# Channel IDs
|
||||||
|
thaw_report_channel_id: int = 1354134347598266430
|
||||||
|
|
||||||
# Channel Names
|
# Channel Names
|
||||||
sba_network_news_channel: str = "sba-network-news"
|
sba_network_news_channel: str = "sba-network-news"
|
||||||
|
|
||||||
|
|||||||
@ -984,15 +984,9 @@ class TransactionFreezeTask:
|
|||||||
self.logger.warning("Could not find guild for thaw report")
|
self.logger.warning("Could not find guild for thaw report")
|
||||||
return
|
return
|
||||||
|
|
||||||
# Try to find admin channel (admin, bot-admin, or bot-logs)
|
admin_channel = self.bot.get_channel(config.thaw_report_channel_id)
|
||||||
admin_channel = None
|
|
||||||
for channel_name in ['bot-admin', 'admin', 'bot-logs']:
|
|
||||||
admin_channel = discord.utils.get(guild.text_channels, name=channel_name)
|
|
||||||
if admin_channel:
|
|
||||||
break
|
|
||||||
|
|
||||||
if not admin_channel:
|
if not admin_channel:
|
||||||
self.logger.warning("Could not find admin channel for thaw report")
|
self.logger.warning("Could not find thaw report channel", channel_id=config.thaw_report_channel_id)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Build the report content
|
# Build the report content
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user