Skip to content

Commit

Permalink
Remove extra command
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavwilliam committed Jul 28, 2024
1 parent 3ef273a commit 9298681
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,6 @@ async def eval_code(interaction: discord.Interaction, *, code: str) -> None:
)


@bot.tree.command(name="complete", description="complete level")
async def complete_level(interaction: discord.Interaction, level: int) -> None:
"""Complete a level."""
level_object = Controller().get_level_by_id(level)
if level_object is None:
await interaction.response.send_message("Level not found.", ephemeral=True)
return
await interaction.response.defer(ephemeral=True, thinking=False)
await level_object().on_success(interaction=interaction)


# Bot ready message
@bot.event
async def on_ready() -> None:
Expand Down

0 comments on commit 9298681

Please sign in to comment.