<filename>ElevatorBot/commands/a_destiny/dayOneRace.py
from dis_snek import InteractionContext, slash_command

from ElevatorBot.commands.base import BaseScale
from ElevatorBot.core.destiny.dayOneRace import DayOneRace
from Shared.functions.readSettingsFile import get_setting

# =============
# Descend Only!
# =============


class DayOneRaceCommand(BaseScale):

    # todo perms
    @slash_command(
        name="day_one_raid_race",
        description="Starts the Day One raid completion announcer",
        scopes=get_setting("COMMAND_GUILD_SCOPE"),
    )
    async def day_one_raid_race(self, ctx: InteractionContext):
        if ctx.author.id != <PASSWORD>:
            await ctx.send(
                "This is blocked for now, since it it waiting for a vital unreleased discord feature", ephemeral=True
            )
            return

        racer = DayOneRace(ctx=ctx)
        await racer.start()


def setup(client):
    DayOneRaceCommand(client)

<filename>ElevatorBot/commands/a_destiny/dayOneRace.py
from dis_snek import InteractionContext, slash_command

from ElevatorBot.commands.base import BaseScale
from ElevatorBot.core.destiny.dayOneRace import DayOneRace
from Shared.functions.readSettingsFile import get_setting

# =============
# Descend Only!
# =============


class DayOneRaceCommand(BaseScale):

    # todo perms
    @slash_command(
        name="day_one_raid_race",
        description="Starts the Day One raid completion announcer",
        scopes=get_setting("COMMAND_GUILD_SCOPE"),
    )
    async def day_one_raid_race(self, ctx: InteractionContext):
        if ctx.author.id != <PASSWORD>:
            await ctx.send(
                "This is blocked for now, since it it waiting for a vital unreleased discord feature", ephemeral=True
            )
            return

        racer = DayOneRace(ctx=ctx)
        await racer.start()


def setup(client):
    DayOneRaceCommand(client)

# ============= # Descend Only! # ============= # todo perms