I'm trying to build a discord bot where there's a delay in between asking for an upgrade and the upgrade being received. With 2 upgrade slots, you should be able to fill both at the same time. However, it's not letting me add 2 delays at the same time (2 time.sleep()). On discord when I put the command for both functions one after the other, it takes 10 seconds to execute the first one and then another 10 seconds to execute the second, when I would preferably want it to take both simultaneously, meaning overall 10 seconds instead of 20. My code is below. Any ideas?
if message.content.startswith('fd!upgradefw'):
if message.author.id == [id]:
if Slots > 0:
await message.channel.send("Upgrading!")
Slots = Slots - 1
time.sleep(10)
await message.channel.send("Upgrade Complete!")
FWForli = FWForli+1
if message.content.startswith('fd!upgraderw'):
if message.author.id == [id]:
if Slots > 0:
await message.channel.send("Upgrading!")
Slots = Slots - 1
time.sleep(10)
await message.channel.send("Upgrade Complete!")
RWForli = RWForli+1