Timelapse, the road traveled / total distance traveled proportion

Asked Dec 21, 2023·1 reply·Last activity 2 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi,
First things first, as a moderator i wanna add a command that shows what's the percentage of road has been traveled. For an example: Total distance time: 10 hours. The road traveled: 1 hour. So nightbot should respond like this: 10% percentage of road has been traveled.

Commands i am planning to add but i don't know how can i create the codes:

!road start (traveled time so far) (total travel time)

and if someone else in chat type !road, the nightbot should type like this: %X'of road has been traveled.

and !road stop to stop the command. Also, '!road break' to stop the timer and so we can have a break while on the road. (as well as to start timer back again from where it was, like leaving the break and starting the timer back from where it was)

Appreciate any help.

1 reply

to be all in one command like that, u'd either need somewhere to store data or an api... but if u don't mind splitting it into a few commands, i believe it can be done ^^