1
1
1 22021-03-04 16:44:28
Python
1 2, 2021-03-04 16:44:28

Discord.py how to enter CD commands in the database?

How to enter the team's CD into the database (pymongo) in a bot on discord.py, so that when the bot is restarted, the team's CD is saved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MinTnt, 2021-03-04
@weRifiCatoR

I'm not very familiar with this database, but how is it possible to save the time in the database when the CD passes, by type (time.time() + 30). Thus, then in the code, add a check if the time is now > the end time of the CD ( if time.time()>(parameter from the database))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question