48 lines
900 B
Python
48 lines
900 B
Python
"""
|
|
File contains classes defining the Hydra configuraton structure.
|
|
"""
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class Params:
|
|
"""
|
|
Class defines the various configuration parameters.
|
|
"""
|
|
|
|
active_category_id: int
|
|
annoucement_category_id: int
|
|
archive_channel_group_id: int
|
|
clan_council_elect_role_id: int
|
|
clan_council_role_id: int
|
|
clan_info_channel_id: int
|
|
clan_member_role_id: int
|
|
discord_token: str
|
|
guild_id: int
|
|
high_council_role_id: int
|
|
voting_emote_id: str
|
|
|
|
|
|
@dataclass
|
|
class ElectionCycle:
|
|
"""
|
|
Class defines relevant election dates.
|
|
"""
|
|
|
|
election_start: str
|
|
name: str
|
|
term_end: str
|
|
term_start: str
|
|
voting_end: str
|
|
voting_start: str
|
|
|
|
|
|
@dataclass
|
|
class DakinyConfig:
|
|
"""
|
|
Class defines all configs required for Dakiny Bot.
|
|
"""
|
|
|
|
election_cycles: list[ElectionCycle]
|
|
params: Params
|