Archived
generated from imcompiling/discord-bot-template
Compare commits
2
Commits
34cd2f9975
...
b727a80e4f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b727a80e4f | ||
|
|
857b5f1669 |
+3
-3
@@ -3,10 +3,10 @@ FROM python:3.12.3-slim
|
|||||||
# install uv
|
# install uv
|
||||||
COPY --from=ghcr.io/astral-sh/uv:0.6.5 /uv /uvx /bin/
|
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
|
# 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
|
RUN uv sync --frozen --no-dev
|
||||||
|
|
||||||
CMD ["uv", "run", "./off-cooldown-bot/main.py"]
|
CMD ["uv", "run", "./off_cooldown_bot/main.py"]
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ def main() -> None:
|
|||||||
intents.message_content = True
|
intents.message_content = True
|
||||||
|
|
||||||
# To enable the guilds privileged intent:
|
# To enable the guilds privileged intent:
|
||||||
# intents.guilds = True
|
# intents.guilds = True # noqa: ERA001
|
||||||
|
|
||||||
# To enable the members privileged intent:
|
# To enable the members privileged intent:
|
||||||
intents.members = True
|
intents.members = True
|
||||||
@@ -47,7 +47,7 @@ def main() -> None:
|
|||||||
if bot.user is None:
|
if bot.user is None:
|
||||||
ocd_logger.critical("Discord connection failed.")
|
ocd_logger.critical("Discord connection failed.")
|
||||||
return
|
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
|
# Run Discord bot
|
||||||
bot.run(settings.params.discord_token)
|
bot.run(settings.params.discord_token)
|
||||||
|
|||||||
Reference in New Issue
Block a user