March 8th, 2005, 02:10 PM
I'm trying to do the following:
When a user sends this command, the are to select a number, the number stands for the amount of minutes, it can go up to only 60, and a message will get sent that many minutes later. For instance, if they chose number 25, the message (I have a random quote that gets sent as a message) gets sent 25 minutes after the current time. Is there an easy way to doing this? Or do I have to edit the time for every possible minute the user can choose and then compare that time with the current time?
March 8th, 2005, 04:03 PM
Dave - The Developers' Coach
delayInMinutes = int(raw_input("how many minutes?"))
time.sleep(60 * delayInMinutes)
print "some random quote"
Comments on this post