I
I
irdaxirdaxirdax2020-07-04 21:20:55
Python
irdaxirdaxirdax, 2020-07-04 21:20:55

Manage VK bot with 2 scripts?

Hello.

You need to make a bot in VK, but it will have two tasks (and both have an infinite loop)
1. Reply to messages
2. Write messages on a timer (schedule library)
Is it possible to control the bot from 2 scripts?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
cython, 2020-07-04
@irdaxirdaxirdax

You can just run the wait from schedule in a separate thread

N
Nikita Davydov, 2020-07-04
@nikitos42050

If this is a callback, then you can create an additional server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question