Bug Report: Incorrect link in error message

Asked Nov 12, 2020·3 replies·Last activity 5 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.

3 replies

@Scarlet Owl Hmm, I am using $(time), $(countup), and $(countdown) for a long time, and still didn't observe this glitch. I think we should make a custom output for this case.

!addcom -cd=5 !time $(eval time = `$(time $(query) "MMMM Do YYYY, h:mm:ss a z [GMT]Z")`; if ( time === `Invalid timezone specified. For a list of timezones, check https://docs.nightbot.tv/commands/variables/time#timezones` ) { `Invalid timezone specified. For a list of timezones, check https://docs.nightbot.tv/variables/time#timezones` } else { time })

It's a band-aid fix, but does work for now. I'd also argue that your command is too verbose, and can be shortened significantly using just the following:

!addcom -cd=5 !time $(eval time = $(time $(query) "MMMM Do YYYY, h:mm:ss a z [GMT]Z"); time.replace('commands/variables', 'variables'))

LOL, yeah. That's a better way. I agree