diff --git a/Dockerfile b/Dockerfile index 8abedd6..094b885 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN apt-get update && apt-get -y upgrade && apt-get -y install git sqlite3 WORKDIR /home -COPY config.py config.py +COPY DakinySettings.py DakinySettings.py COPY main.py main.py COPY utils.py utils.py COPY pyproject.toml pyproject.toml diff --git a/classes/election.py b/classes/election.py index 9963650..8a3995b 100644 --- a/classes/election.py +++ b/classes/election.py @@ -45,7 +45,6 @@ class Election: Args: cycle (int): Which election cycle this cycle is. - config (DakinyConfig): The entire config object. guild (nextcord.Guild): The guild that this election is running in. """ self.cycle = cycle diff --git a/main.py b/main.py index 80ea8d7..ef9bfb8 100644 --- a/main.py +++ b/main.py @@ -23,12 +23,7 @@ logger.addHandler(handler) def main() -> None: - """ - Builds and runs bot. - - Args: - cfg (DakinyConfig): Passed in hydra configuration. - """ + """Builds and runs bot.""" # Allows privileged intents for monitoring members joining, roles editing, and role assignments # These need to be enabled in the developer portal as well intents = nextcord.Intents.default() diff --git a/utils.py b/utils.py index d277fd5..2531bd0 100644 --- a/utils.py +++ b/utils.py @@ -160,7 +160,6 @@ def build_highcouncil_votes_str(guild: nextcord.Guild) -> str: Creates a string that contains all high council nominees and their votes to be sent as a discord message. Args: - config (DakinyConfig): Dakiny config object guild (nextcord.Guild): The guild object. Used to get display names for sorting. Returns: @@ -297,7 +296,6 @@ def record_event_points(users: Sequence[str], add_points: int, *, is_member: boo adds points to the existing value. Can be used for hosting or participating. Args: - config (DakinyConfig): Dakiny config for getting points users (Sequence[int]): users that participated and need points. add_points (int): number of points to add is_member (bool): whether the users are a discord member or not @@ -495,7 +493,6 @@ async def edit_clan_council_info(guild: nextcord.Guild) -> None: Args: guild (nextcord.Guild): Guild object that to use to get channel. - config (DakinyConfig): Configs """ clan_info_channel: nextcord.TextChannel = await guild.fetch_channel(settings.channel_ids.clan_info)