S
S
sobot2019-03-13 16:00:37
Python
sobot, 2019-03-13 16:00:37

How to make automatic mailing for a VK bot written in python?

I want to implement automatic notification of bot users at a certain time, but I can't. If I make an infinite loop, and I check the time in it, then the bot commands do not work for me

while True:
         #проверка на время, если всё хорошо - отправляю
#тело цикла закончилось

for event in longpoll.listen():
        #тут основной код по командам

Please tell me how to implement this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
blizzard, 2019-03-13
@sobot

If the script is run from windows, then you can use the task scheduler
Here more

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question