I'm trying to make a discord bot where you can type 'iq math' and it sends a random math question. I want a delay so that if a user types 'iq math' and answers correctly or wrong it makes a delay so that the user have to wait 24 hours before the user can use 'iq math' again. The problem is when I start the delay it waits until it is finished for example:
users[user]['math']['timer'] = wait24hours()
print('You can now ask a math question again.')
It waits until 24 hours has passed after that it prints 'You can now ask a math question again.'
How do I fix this?