Answer the question
In order to leave comments, you need to log in
How to run a bot with Loop Wrapper on VK Bottle?
The code:
lw = LoopWrapper()
@lw.interval(seconds=1)
async def repeated_task():
print("тест")
bot.run_forever()
lw.run_forever()
Answer the question
In order to leave comments, you need to log in
Why do you need a new LoopWrapper if it has already been created in the Bot?
@bot.loop_wrapper.interval(seconds=1)
async def repeated_task():
print("тест")
bot.run_forever()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question