5 Commits

Author SHA1 Message Date
8c4641f06a Update file Dockerfile 2025-01-09 09:46:23 +00:00
1edcc2dd6b fixed uv version (5.0.0 goes brrrr) 2024-11-08 12:50:51 +03:00
67e4925011 fix reply_to 2024-11-07 22:34:07 +03:00
29f05bb030 Merge branch 'feature/new-responses' into 'main'
extract links, delete incoming msg, add sender to reply

See merge request ollyhearn/nosibakabot!1
2024-11-07 19:27:37 +00:00
24844ea787 extract links, delete incoming msg, add sender to reply 2024-11-07 19:27:37 +00:00
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
FROM python:3.12.7-alpine
WORKDIR /app
ADD https://astral.sh/uv/install.sh /uv-installer.sh
ADD https://github.com/astral-sh/uv/releases/download/0.4.30/uv-installer.sh /uv-installer.sh
RUN sh /uv-installer.sh
ENV PATH="/root/.cargo/bin/:$PATH"
@ -9,4 +9,4 @@ ADD pyproject.toml .
ADD uv.lock .
RUN uv sync --frozen
ADD . .
CMD ["uv", "run", "python", "/app/bot.py"]
CMD ["/root/.cargo/bin/uv", "run", "python", "/app/bot.py"]

View File

@ -64,8 +64,8 @@ async def got_message(msg: Message):
await bot.delete_message(msg.chat.id, msg.id, timeout=5)
except Exception as e:
await bot.reply_to(
message=msg.id,
text="Uoghhhh, i am not an admin here? I can't cleanup this tracking(",
msg,
"Uoghhhh, i am not an admin here? I can't cleanup this tracking(",
)
print(e, flush=True) # todo: логгер
return