A
A
apiwi2020-06-14 10:56:22
Python
apiwi, 2020-06-14 10:56:22

How to add to the exception the days of the week on which the bot will not write?

There is a VK bot, every day at 10:00 and 13:00 sends messages to users from the database. How can I add exceptions so that the bot does not write on Saturday and Sunday?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2020-06-14
@apiwi

5ee5dd7754479220859008.png
so you can get the day of the week. Monday - 1, Sunday - 7. Check - if today is day 6 or 7, then do not send a message

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question