Compare commits

..
3 Commits
Author SHA1 Message Date
Sylphian 50917f84f6 chore: remove gitea ci workflows 2026-10-11 12:37:34 +08:00
Favian Naufal 0226df3fd0 ci: configure automated test & continuous deployment
Deploy Epic Bot / lint-and-check (push) Successful in 1m11s
2026-09-01 02:02:27 +08:00
Favian Naufal 08c6ac009b feat: support multi-account stats lookup 2026-09-01 01:48:01 +08:00
3 changed files with 32 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
set -e
echo "=== Deploying Epic MLBB Bot ==="
cd /home/sylph/epic
echo "1. Pulling latest changes from git..."
git pull origin main
echo "2. Syncing Python dependencies..."
/home/sylph/.hermes/bin/uv sync
echo "3. Restarting user systemd service..."
systemctl --user restart epic-bot.service
echo "4. Checking service status..."
sleep 2
systemctl --user is-active --quiet epic-bot.service && echo "✓ epic-bot is active and running" || (echo "✗ Service failed to start" && exit 1)
echo "=== Deployment Completed Successfully ==="
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
export XDG_RUNTIME_DIR=/run/user/1002
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1002/bus"
/home/sylph/epic/scripts/deploy.sh
+8
View File
@@ -231,6 +231,14 @@ class MLBBCog(commands.Cog):
"SELECT id, in_game_name FROM ref_player WHERE discord_user_id = $1",
interaction.user.id,
)
if len(player_rows) > 1:
igns = ", ".join(f"`{r['in_game_name']}`" for r in player_rows)
await interaction.response.send_message(
f"You have multiple registered IGNs ({igns}). Please specify one: `/stats ign:<name>`",
ephemeral=True,
)
return
player_row = player_rows[0] if player_rows else None
if not player_rows:
target_desc = f"**{ign}**" if ign else "your Discord account"