Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pitte
bits-companion
Commits
72af8876
Verified
Commit
72af8876
authored
Oct 19, 2021
by
Mroik
Browse files
Added Dockerfile
parent
43557a01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
0 → 100644
View file @
72af8876
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"]
mt/handlers.py
View file @
72af8876
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment