Change file copied by Dockerfile. Remove last references to old config in docstrings.

This commit is contained in:
2024-09-03 19:46:02 -04:00
parent 44586183fe
commit 4044c84811
4 changed files with 2 additions and 11 deletions
+1 -1
View File
@@ -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
-1
View File
@@ -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
+1 -6
View File
@@ -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()
-3
View File
@@ -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)