move venv to shared (#1291)

This commit is contained in:
NotSoToothless
2026-05-31 01:43:19 -07:00
committed by GitHub
parent 37c3e66d75
commit cb0a18f748
11 changed files with 23 additions and 41 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ async def on_ready():
"""Handle bot startup: write guild report, refresh presence, init caches, and start tasks."""
GUILD_TOTAL = len(bot.guilds)
out_path = STORAGE_DIR / "GUILD_REPORT.txt"
out_path = STORAGE_DIR / "SREBOT_GUILDS.txt"
with out_path.open("w", encoding="utf-8") as f:
f.write(f"We have logged in as {bot.user} in the following Guilds:\n\n")
for guild in bot.guilds:
@@ -334,7 +334,7 @@ async def _refresh_presence():
await bot.change_presence(
activity=discord.Activity(
type=discord.ActivityType.playing,
name=f"Playing War Thunder in {GUILD_TOTAL} servers!"
name=f"Playing SRE in {GUILD_TOTAL} servers!"
)
)
+1 -1
View File
@@ -2,7 +2,7 @@
Smoke test for BOT/render_recap.py in --mode player.
Usage:
source .venv/bin/activate && python BOT/tests/smoke_player_recap.py
source ../SHARED/.venv/bin/activate && python BOT/tests/smoke_player_recap.py
"""
import sqlite3
+1 -1
View File
@@ -5,7 +5,7 @@ Runs the renderer end-to-end against the live HC storage volume databases
and verifies a PNG lands at the --out path.
Usage:
source .venv/bin/activate && python BOT/tests/smoke_recap.py
source ../SHARED/.venv/bin/activate && python BOT/tests/smoke_recap.py
"""
import subprocess
+1 -1
View File
@@ -1957,7 +1957,7 @@ _REPO_ROOT = Path(__file__).resolve().parent.parent
SQUADRON_RECAP_CACHE_DIR = STORAGE_DIR / "RECAPS" / "squadrons"
PLAYER_RECAP_CACHE_DIR = STORAGE_DIR / "RECAPS" / "players"
_RECAP_PYTHON_BIN = _REPO_ROOT / ".venv" / "bin" / "python"
_RECAP_PYTHON_BIN = _REPO_ROOT.parent / "SHARED" / ".venv" / "bin" / "python"
_RECAP_SCRIPT = _REPO_ROOT / "BOT" / "render_recap.py"
RECAP_TTL_SECONDS = 24 * 60 * 60 # in-progress season TTL (matches web)