D
D
Dream2021-07-02 15:55:26
Python
Dream, 2021-07-02 15:55:26

How to make a temporary subscription in a bot using MongoDB?

I want to make a subscription, if VIP: 0 - then it is not there, if VIP: 1 - then it is, how to make it temporary? So that at the end of time she was filming? (Ie, from 1 it became 0). Asyncio.sleep is not suitable, it is necessary that even when the bot is restarted, the report remains until the end of the subscription.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill, 2021-07-02
@kustiktm_kirill

You save the date of purchase in the database and then compare it with the current one)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question