I can't for the life of me figure out how to multiply the fetched information that "!uptime" gets by 7.
any help or tips would be very appreciated.
P.S. This is my first time trying to make a command and I know it is probably easy I just can't understand JS.
4 replies
Quirky Fox
Well firstly do you want the command to roll over minutes second and hours into the next one so it would show 13 hours 52 minutes 20 seconds or do you want it to be able to show like this 7 hours 350 minutes 140 seconds
These are both 7x 1 hour 50 minutes 20 seconds.
Polar Cat
Hey @Ivory Camel!
Okay, I made you a command that would convert 1 hour 50 minutes 20 seconds to 12 hours 52 minutes 20 seconds as I think that's what you're looking for. There could be some errors if the command is called at 0 minute/second/etc as it simply removes the value instead of giving a 0, so that gives ~0.02% of errors. Since it could be "minute" or "minutes" I didn't have enough room to include the tests required to make it perfect. One solution would have been to create a Pastebin to fit the more complete code, but I tried to keep it as simple as possible to only use Nightbot, that said I didn't manage to make it fit under 500 characters, so we'll be using an alias command as well.
So here are the commands, just copy/paste them in your chat: