2 Commits
Author SHA1 Message Date
imcompiling b727a80e4f Fix smells in main.py.
build_develop / build (push) Successful in 26s
2025-03-18 10:11:52 -04:00
imcompiling 857b5f1669 Update module name in dockerfile. 2025-03-18 10:10:38 -04:00
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -3,10 +3,10 @@ FROM python:3.12.3-slim
# install uv
COPY --from=ghcr.io/astral-sh/uv:0.6.5 /uv /uvx /bin/
COPY . /off-cooldown-bot
COPY . /off_cooldown_bot
# Sync the project into a new environment, using the frozen lockfile
WORKDIR /off-cooldown-bot
WORKDIR /off_cooldown_bot
RUN uv sync --frozen --no-dev
CMD ["uv", "run", "./off-cooldown-bot/main.py"]
CMD ["uv", "run", "./off_cooldown_bot/main.py"]
+2 -2
View File
@@ -30,7 +30,7 @@ def main() -> None:
intents.message_content = True
# To enable the guilds privileged intent:
# intents.guilds = True
# intents.guilds = True # noqa: ERA001
# To enable the members privileged intent:
intents.members = True
@@ -47,7 +47,7 @@ def main() -> None:
if bot.user is None:
ocd_logger.critical("Discord connection failed.")
return
ocd_logger.info(f"{bot.user.name} has connected to Discord!")
ocd_logger.info("%s has connected to Discord!", bot.user.name)
# Run Discord bot
bot.run(settings.params.discord_token)