Compare commits
3
Commits
e8a68dea4d
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50917f84f6 | ||
|
|
0226df3fd0 | ||
|
|
08c6ac009b |
Executable
+20
@@ -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 ==="
|
||||||
@@ -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
|
||||||
@@ -231,6 +231,14 @@ class MLBBCog(commands.Cog):
|
|||||||
"SELECT id, in_game_name FROM ref_player WHERE discord_user_id = $1",
|
"SELECT id, in_game_name FROM ref_player WHERE discord_user_id = $1",
|
||||||
interaction.user.id,
|
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:
|
if not player_rows:
|
||||||
target_desc = f"**{ign}**" if ign else "your Discord account"
|
target_desc = f"**{ign}**" if ign else "your Discord account"
|
||||||
|
|||||||
Reference in New Issue
Block a user