Nightbot accountage

is there a command that does !accountage
${user} was created 1 year 5 months 27 days 1 hour ago.
but I don’t just want it to be with the year and month I can’t find any that work

Hey @shadowvib!

You can adjust the output of the Twitch variable by using JavaScript and RegExp:

$(eval a='$(twitch $(touser) "{{createdLength}}")'.match(/\d+\syear(s)?\s\d+\smonth(s)?/g); `$(touser) was created ${a[0]} ago.`)
1 Like

it worked thank you so much I was stuck on it .

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.