Verified Commit 72af8876 authored by Mroik's avatar Mroik
Browse files

Added Dockerfile

parent 43557a01
FROM python:3.9.7-slim
RUN mkdir bits-tgbot
COPY . /bits-tgbot/
WORKDIR /bits-tgbot
RUN pip install -r requirements.txt
ENTRYPOINT ["python", "main.py"]
......@@ -27,10 +27,10 @@ def on_message(client, userdata, msg):
return
if payload["status"] == OPEN:
for id_ in where_am_i:
updater.bot.send_message(id_, "Il POuL è aperto!")
updater.bot.send_message(id_, "🟢🟢 Il POuL è aperto! 🟢🟢")
elif payload["status"] == CLOSED:
for id_ in where_am_i:
updater.bot.send_message(id_, "Il POuL è chiuso!")
updater.bot.send_message(id_, "🔴🔴 Il POuL è chiuso! 🔴🔴")
def on_publish(client, userdata, mid):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment