Change file copied by Dockerfile. Remove last references to old config in docstrings.
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ RUN apt-get update && apt-get -y upgrade && apt-get -y install git sqlite3
|
|||||||
|
|
||||||
WORKDIR /home
|
WORKDIR /home
|
||||||
|
|
||||||
COPY config.py config.py
|
COPY DakinySettings.py DakinySettings.py
|
||||||
COPY main.py main.py
|
COPY main.py main.py
|
||||||
COPY utils.py utils.py
|
COPY utils.py utils.py
|
||||||
COPY pyproject.toml pyproject.toml
|
COPY pyproject.toml pyproject.toml
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ class Election:
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
cycle (int): Which election cycle this cycle is.
|
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.
|
guild (nextcord.Guild): The guild that this election is running in.
|
||||||
"""
|
"""
|
||||||
self.cycle = cycle
|
self.cycle = cycle
|
||||||
|
|||||||
@@ -23,12 +23,7 @@ logger.addHandler(handler)
|
|||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
"""
|
"""Builds and runs bot."""
|
||||||
Builds and runs bot.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
cfg (DakinyConfig): Passed in hydra configuration.
|
|
||||||
"""
|
|
||||||
# Allows privileged intents for monitoring members joining, roles editing, and role assignments
|
# Allows privileged intents for monitoring members joining, roles editing, and role assignments
|
||||||
# These need to be enabled in the developer portal as well
|
# These need to be enabled in the developer portal as well
|
||||||
intents = nextcord.Intents.default()
|
intents = nextcord.Intents.default()
|
||||||
|
|||||||
@@ -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.
|
Creates a string that contains all high council nominees and their votes to be sent as a discord message.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
config (DakinyConfig): Dakiny config object
|
|
||||||
guild (nextcord.Guild): The guild object. Used to get display names for sorting.
|
guild (nextcord.Guild): The guild object. Used to get display names for sorting.
|
||||||
|
|
||||||
Returns:
|
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.
|
adds points to the existing value. Can be used for hosting or participating.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
config (DakinyConfig): Dakiny config for getting points
|
|
||||||
users (Sequence[int]): users that participated and need points.
|
users (Sequence[int]): users that participated and need points.
|
||||||
add_points (int): number of points to add
|
add_points (int): number of points to add
|
||||||
is_member (bool): whether the users are a discord member or not
|
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:
|
Args:
|
||||||
guild (nextcord.Guild): Guild object that to use to get channel.
|
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)
|
clan_info_channel: nextcord.TextChannel = await guild.fetch_channel(settings.channel_ids.clan_info)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user