So I am trying to create a stopwatch for someone when they do “/logstart” and “/logstop” but i want multiple people to be able to start and stop their own stopwatch without interference.
@bot.command(name='logstart')
async def logstart(ctx, arg1):
await ctx.message.delete()
await ctx.send('Log has Started')
@bot.command(name='logstop')
async def logstop(ctx):
await ctx.message.delete()
await ctx.send('FLIGHT LOGnDuration: stopwatch timenFlight Plan: argument1')
User does “/logstart EGCC(DEP) EGLL(ARR)”:
Bot: Log Started
User does “/logstop”
Bot: FLIGHT LOG
Duration: %stopwatch time%
Flight Plan: EGCC(DEP) EGLL(ARR)
i tried searching the docs for how to make a local variable but didn’t find much
New contributor
Petros Muston is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.