Compare commits
5 Commits
feature/ne
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c4641f06a | |||
| 1edcc2dd6b | |||
| 67e4925011 | |||
| 29f05bb030 | |||
| 24844ea787 |
@ -1,7 +1,7 @@
|
|||||||
FROM python:3.12.7-alpine
|
FROM python:3.12.7-alpine
|
||||||
WORKDIR /app
|
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
|
RUN sh /uv-installer.sh
|
||||||
ENV PATH="/root/.cargo/bin/:$PATH"
|
ENV PATH="/root/.cargo/bin/:$PATH"
|
||||||
|
|
||||||
@ -9,4 +9,4 @@ ADD pyproject.toml .
|
|||||||
ADD uv.lock .
|
ADD uv.lock .
|
||||||
RUN uv sync --frozen
|
RUN uv sync --frozen
|
||||||
ADD . .
|
ADD . .
|
||||||
CMD ["uv", "run", "python", "/app/bot.py"]
|
CMD ["/root/.cargo/bin/uv", "run", "python", "/app/bot.py"]
|
||||||
|
|||||||
@ -64,8 +64,8 @@ async def got_message(msg: Message):
|
|||||||
await bot.delete_message(msg.chat.id, msg.id, timeout=5)
|
await bot.delete_message(msg.chat.id, msg.id, timeout=5)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await bot.reply_to(
|
await bot.reply_to(
|
||||||
message=msg.id,
|
msg,
|
||||||
text="Uoghhhh, i am not an admin here? I can't cleanup this tracking(",
|
"Uoghhhh, i am not an admin here? I can't cleanup this tracking(",
|
||||||
)
|
)
|
||||||
print(e, flush=True) # todo: логгер
|
print(e, flush=True) # todo: логгер
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user