From c46faf8a1812e62207ea8e44adb1d21e1f656988 Mon Sep 17 00:00:00 2001 From: S1ro1 Date: Thu, 23 Jan 2025 19:25:36 +0100 Subject: [PATCH] Fix: reply to message so bot 'stops thinking' --- src/discord-cluster-manager/cogs/leaderboard_cog.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/discord-cluster-manager/cogs/leaderboard_cog.py b/src/discord-cluster-manager/cogs/leaderboard_cog.py index 60b4b66..288c1a5 100644 --- a/src/discord-cluster-manager/cogs/leaderboard_cog.py +++ b/src/discord-cluster-manager/cogs/leaderboard_cog.py @@ -200,6 +200,11 @@ async def on_submit_hook( if not interaction.response.is_done(): await interaction.response.defer(ephemeral=True) if len(gpus) == 1: + await send_discord_message( + interaction, + f"Running on GPU: **{gpus[0]}**", + ephemeral=True, + ) selected_gpus = gpus else: view = await self.select_gpu_view(interaction, leaderboard_name, gpus)