From 84fa202360b90f6670b49b0fbffbbaca1e7c8fae Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 28 Mar 2023 11:10:44 -0500 Subject: [PATCH] Channel check for draft --- cogs/players.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cogs/players.py b/cogs/players.py index d6d8aba..6e70176 100644 --- a/cogs/players.py +++ b/cogs/players.py @@ -775,6 +775,14 @@ class Players(commands.Cog): @group_gauntlet.command(name='start', description='Start a new Gauntlet run') @app_commands.checks.has_any_role(PD_PLAYERS_ROLE_NAME) async def gauntlet_start_command(self, interaction: discord.Interaction, event_name: Literal['Paper Sluggers']): + if 'hello' not in interaction.channel.name: + await interaction.response.send_message( + content='The draft will probably take you about 15 minutes. Why don\'t you head to your private ' + 'channel to run the draft?', + ephemeral=True + ) + return + await interaction.response.defer() main_team = get_team_by_owner(interaction.user.id) draft_team = get_team_by_abbrev(f'Gauntlet-{main_team["abbrev"]}')