Compare commits
7 Commits
main
...
feature/ne
| Author | SHA1 | Date | |
|---|---|---|---|
| dc4abee6bc | |||
| b5e6cfc7f8 | |||
| ee8d615531 | |||
| f7c1fdcf15 | |||
| 1014e4a0d9 | |||
| 9d90726813 | |||
| 7e78811724 |
@ -1,7 +1,7 @@
|
|||||||
FROM python:3.12.7-alpine
|
FROM python:3.12.7-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ADD https://github.com/astral-sh/uv/releases/download/0.4.30/uv-installer.sh /uv-installer.sh
|
ADD https://astral.sh/uv/install.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 ["/root/.cargo/bin/uv", "run", "python", "/app/bot.py"]
|
CMD ["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(
|
||||||
msg,
|
message=msg.id,
|
||||||
"Uoghhhh, i am not an admin here? I can't cleanup this tracking(",
|
text="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