So i have a code
if not variable:
await msg.channel.send("There are missing data... please wait")
def check(m, user):
return user == msg.author.id and m.channel == msg.channel
if not status:
await msg.channel.send("What would u like as a nickname?")
reply = await bot.wait_for("message", timeout=60.0, check = check())
try:
await c.execute("INSERT INTO status(id, lvl, hp, hpr, xp, xpr, name, race, role, fighting_style, bal), VALUES(?,?,?,?,?,?,?,?,?,?,?)", (msg.author.id, 1, 10,10, 0, 15, reply.content, ))
except asyncio.Timeout:
await msg.channel.send("You took to long.")
If you see an error you dont need to correct, i havent run the program yet.
But i want to know if there's a way i can cancel the task after the timeout, so they have to try again.